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

Ideas about DependentBreakpoint #313

Closed
zero-plusplus opened this issue Jan 17, 2024 · 2 comments
Closed

Ideas about DependentBreakpoint #313

zero-plusplus opened this issue Jan 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@zero-plusplus
Copy link
Owner

zero-plusplus commented Jan 17, 2024

Visual Studio has a breakpoint called Dependent Breakpoint.
This is a breakpoint that is only activated when a specific breakpoint is called.

I have noticed that I can reproduce dependent breakpoints by adding a way to get the hit count of the specified breakpoint.

If you want to get the hit counts of other breakpoints in the conditional expression of a breakpoint, use GetMetaVar("hitCount", BREAKPOINT_ID).

However, it seems that it is necessary to think about how to inform the user about the ID of the breakpoint.

In Visual Studio, this could be selected from a combo box in the UI, but there is no such UI in VSCode. My idea is to display the ID in a UI that displays a list of breakpoints. This could be achieved if the labels of the breakpoints could be changed.

The problem is breakpoints that are not displayed on the UI, e.g. debug directives. These have no way to provide the ID to the user.

Please let me know if there is a better solution.


The following ideas may provide a solution.

@zero-plusplus zero-plusplus added enhancement New feature or request draft Draft of new features labels Jan 17, 2024
@zero-plusplus
Copy link
Owner Author

Coincidentally, dependent breakpoints are to be supported in vscode 1.86.

@zero-plusplus zero-plusplus removed the draft Draft of new features label Jan 23, 2024
@zero-plusplus
Copy link
Owner Author

It was implemented as Triggered breakpoints in vscode 1.86. Therefore, this issue is closed.

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

No branches or pull requests

1 participant