zero-plusplus / vscode-autohotkey-debug

https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug
52 stars 4 forks source link

Ideas about DependentBreakpoint #313

Closed zero-plusplus closed 8 months ago

zero-plusplus commented 8 months ago

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 commented 8 months ago

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

zero-plusplus commented 8 months ago

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