Skip to content

feat: Add support for Logpoints - #343

Merged
zobo merged 2 commits into
xdebug:mainfrom
augustocdias:master
Jul 29, 2021
Merged

feat: Add support for Logpoints#343
zobo merged 2 commits into
xdebug:mainfrom
augustocdias:master

Conversation

@augustocdias

@augustocdias augustocdias commented Apr 2, 2019

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Apr 2, 2019

Copy link
Copy Markdown

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
Copy Markdown

Any updates ?

@augustocdias

Copy link
Copy Markdown
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

zobo commented Feb 3, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Done @zobo

@jpenna

jpenna commented Mar 8, 2021

Copy link
Copy Markdown

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

@zobo

zobo commented Mar 8, 2021

Copy link
Copy Markdown
Contributor

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

jpenna commented Mar 9, 2021

Copy link
Copy Markdown

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

zobo commented Jul 29, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown

🎉 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