Skip to content

Add breakpoint hit counter feature #337

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

Closed
lucdekens opened this issue Nov 4, 2016 · 3 comments
Closed

Add breakpoint hit counter feature #337

lucdekens opened this issue Nov 4, 2016 · 3 comments

Comments

@lucdekens
Copy link

In VSC 1.7, the new breakpoint hit counter feature was introduced.
Currently it only works in the Node.js debugger.

Can this feature be implemented for PowerShell breakpoints in the PowerShell extension?

@rkeithhill
Copy link
Contributor

Work is under way. See PowerShell/PowerShellEditorServices#298.

I should have this work committed in a few days but you will have to wait until the next drop of the PowerShell extension (hopefully in a few weeks).

Today you can do a simple hit count breakpoint in VSCode 1.7 by adding a conditional breakpoint with this expression:

if ($_.HitCount -eq <user hit count>) {  break  }

@lucdekens
Copy link
Author

Great to hear.
Looking forward to that one

@rkeithhill
Copy link
Contributor

Implemented over in the PowerShellEditorServices. Waiting for PR acceptance. PowerShell/PowerShellEditorServices#300

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

No branches or pull requests

2 participants