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

Debugger bug introduced with v2.8.3 #153

Closed
fade2gray opened this issue Jul 6, 2022 · 8 comments · Fixed by #171
Closed

Debugger bug introduced with v2.8.3 #153

fade2gray opened this issue Jul 6, 2022 · 8 comments · Fixed by #171
Assignees
Labels
bug something isn't working

Comments

@fade2gray
Copy link

fade2gray commented Jul 6, 2022

I initially discovered the problem when debugging a script using Step Into (F11) and encountering a FileDelete command. Making sure the said file hadn't somehow become read-only, and that it wasn't open in some other app, I reverted to v2.8.2 which resolved the problem.

The attached video better explains what was happening (I hope) pre and post v2.8.2.

Video starts with v2.8.2 before updating to v2.8.3.

DebuggerBug.mp4
@fade2gray fade2gray added the bug something isn't working label Jul 6, 2022
@mark-wiemer
Copy link
Member

Very strange. All that's changed is the icon. But yes, I can repro the issue. Let me try to rollback now in the short term. Apologies for not testing this.

@mark-wiemer
Copy link
Member

:( 2.8.4 will be identical to 2.8.2, I guess. See microsoft/vsmarketplace#235

@mark-wiemer
Copy link
Member

My mistake, I introduced some "refactors" to clean up the code, but they seem to have broken the debugger and maybe other features. Very sorry for this, I did some testing but obviously missed this somehow. See #135. I will revert the changes, publish 2.8.4, and then investigate.

@mark-wiemer
Copy link
Member

mark-wiemer commented Jul 18, 2022

Manual tests confirm this was introduced by #135

@mark-wiemer
Copy link
Member

Definitely introduced by 0f9d15f Add ESLint and fix problems. I've restored the offending branch for investigation.

This was referenced Jul 18, 2022
@mark-wiemer
Copy link
Member

Trying to write a test to automatically detect this failure. I'll need to programmatically create a breakpoint. I found the command ID for this via searching the command label in keyboard shortcuts, then I found its only reference in the code here: editor.debug.action.conditionalBreakpoint

@mark-wiemer
Copy link
Member

vscode.debug.addBreakpoints doesn't work as one might expect, it seems to be used internally by a debugger, not by VS Code itself. Sticking with conditionalBreakpoint for now.

@mark-wiemer
Copy link
Member

mark-wiemer commented Jul 18, 2022

Identified the root cause: src/debugger/struct/command.ts#Continue must have value step_into, it does not accept stepInto. This is probably documented somewhere, but I can't find it :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants