Open Krysl opened 4 months ago
path in this.contexts
need to be normalized, otherwise entry.fileName === breakPoint.source
may be false
Thanks for reporting the issue and providing a possible solution. I'll look at this later when I come back to the extension development.
test code from #74
If I have another file also have some breakpoints (such as
Ztest.g
, which is used bysetBreakPointsRequest()
later thantest.g
). The breakpoints set bytest.g
will be clear byZtest.g
inthis.debugger.clearBreakPoints();
: https://github.com/mike-lischke/vscode-antlr4/blob/bc5e7469d1db1769ee97129ecc1da6101c9588ba/src/frontend/AntlrDebugAdapter.ts#L239-L245