Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for Logpoints #343

Merged
merged 2 commits into from
Jul 29, 2021
Merged

feat: Add support for Logpoints #343

merged 2 commits into from
Jul 29, 2021

Conversation

augustocdias
Copy link
Contributor

@augustocdias augustocdias commented Apr 2, 2019

Added support to logpoints. I have very limited knowledge about XDebug protocol, but I believe it does not support anything like the logpoint feature from VSCode.
So I thought about doing the following:

  • add a regular breakpoint
  • when breakpoint hit:
    • parse message
      • send eval command to xdebug for each expression inside curly brackets
    • send output to vscode console
    • send continue event

closes #258

@augustocdias augustocdias changed the title WIP: Add support for Logpoints #258 WIP: Add support for Logpoints Apr 2, 2019
@codecov
Copy link

codecov bot commented Apr 2, 2019

Codecov Report

Merging #343 into master will decrease coverage by 0.01%.
The diff coverage is 69.69%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #343      +/-   ##
=========================================
- Coverage   70.11%   70.1%   -0.02%     
=========================================
  Files           5       6       +1     
  Lines        1014    1047      +33     
  Branches      161     169       +8     
=========================================
+ Hits          711     734      +23     
- Misses        303     313      +10
Impacted Files Coverage Δ
src/phpDebug.ts 66.07% <35.71%> (-0.87%) ⬇️
src/logpoint.ts 94.73% <94.73%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7280b6...47e8435. Read the comment docs.

@augustocdias augustocdias changed the title WIP: Add support for Logpoints Add support for Logpoints Apr 2, 2019
@qkdreyer
Copy link

Any updates ?

@augustocdias
Copy link
Contributor Author

@qkdreyer I'm just using a local generated version of it instead of this because @felixfbecker seems to not maitain this repo anymore...

@felixfbecker felixfbecker changed the base branch from master to main December 21, 2020 20:20
@zobo
Copy link
Contributor

zobo commented Feb 3, 2021

Hello @augustocdias. Are you willing to rebase this? I'll have a fresh look at it and see if it can be merged.

@augustocdias
Copy link
Contributor Author

Done @zobo

@jpenna
Copy link

jpenna commented Mar 8, 2021

Is it only the tests that are missing? The feature is implemented?

@zobo
Copy link
Contributor

zobo commented Mar 8, 2021

Hi! No, it's not about the tests. I am currently working on a large refactor on how the extension works with debug sessions (here #517). This has also a lot to do with breakpoints and logpoints. That's the reason I was avoiding merging this PR, although it could already go in.
Hopefully I'll finish with my work in the next week and then I can also refactor this PR into the new design.

@jpenna
Copy link

jpenna commented Mar 9, 2021

Oh! That's great to hear! I was thinking I could try working on the tests if it was only that missing. I can't wait to see the new version 😁

@zobo zobo mentioned this pull request Jun 10, 2021
2 tasks
@zobo
Copy link
Contributor

zobo commented Jul 29, 2021

I did a merge/rebase and changed parts of how the logpoint class is integrated into the main phpDebug class. Will create a new release soon.

Augusto César Dias and others added 2 commits July 29, 2021 15:59
feat: adding types for string-replace-async library

feat: linting and prettifying

feat: adding tests for logpoint class

feat: fixing formatting

feat: fixing doc for attribute
@zobo zobo changed the title Add support for Logpoints feat: Add support for Logpoints Jul 29, 2021
@zobo zobo merged commit cb091b7 into xdebug:main Jul 29, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Add support for Logpoints
5 participants