-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Visual Studio incorrectly pauses on conditional breakpoints. #267
Comments
For reference, this was originally posted on https://godotforums.org/discussion/26223/when-using-visual-studio-code-for-debugging-it-incorrectly-freezes-on-breakpoints#latest. @dragon3025 Which Godot and VS Code versions are you using? Could you upload a minimal reproduction project and tell us where to put a breakpoint to reproduce this? |
My Godot version is: v3.3.stable.official I've attached a reduced version of my project. Before I reduced it I tested it some more. I didn't run into the problem again, except until after a few tries. I don't know what I did to cause it, but it could be after an error in a breakpoint (it did it again after I fixed the error), or it could be after I debugged it in godot instead of vs. Before and after I reduced it, it was breaking on the breakpoint incorrectly (this time actually breaking on instead of just freezing the game). EDIT: I discovered what made my the game freeze on the breakpoint. My port in configuration.json was 6008 instead of 6007. I think I got thrown off because the port in lsp port in the settings is 6008. Eventually I changed it back and that must be what fixed the freezing. It's still incorrectly pausing on breakpoints though. Note, that I'm adding the breakpoint after a variable (for example, "test = false" on one line, then on the next line my breakpoint condition is "test == false". |
I'm using visual studio code with godot-tools extension. To test this out, I set a conditional breakpoint with a condition that's impossible to achieve.
The game incorrectly freezes on the breakpoint, and from what I seen in videos, there's supposed to be a yellow marker outline on the breakpoint, but that's not the case. My only options when it freezes is pause, restart, or start which is a sign that it hasn't actually hit the breakpoint.
When I disable the breakpoint the game runs fine, so it's not the coding.
EDIT: I changed the title, because the freezing isn't happening anymore, but the incorrect pausing is.
The text was updated successfully, but these errors were encountered: