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

Visual Studio incorrectly pauses on conditional breakpoints. #267

Closed
dragon3025 opened this issue May 8, 2021 · 2 comments · Fixed by #278
Closed

Visual Studio incorrectly pauses on conditional breakpoints. #267

dragon3025 opened this issue May 8, 2021 · 2 comments · Fixed by #278

Comments

@dragon3025
Copy link

dragon3025 commented May 8, 2021

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.

@Calinou
Copy link
Member

Calinou commented May 8, 2021

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?

@dragon3025
Copy link
Author

dragon3025 commented May 8, 2021

My Godot version is: v3.3.stable.official
My Visual studio version is 1.56.0

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).

Action RPG.zip

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".

@dragon3025 dragon3025 changed the title When using visual studio code for debugging, it incorrectly freezes on breakpoints Visual Studio incorrectly pauses on conditional breakpoints. May 17, 2021
Razoric480 added a commit to Razoric480/godot-vscode-plugin that referenced this issue Jun 17, 2021
Razoric480 added a commit to Razoric480/godot-vscode-plugin that referenced this issue Jun 17, 2021
Razoric480 added a commit to Razoric480/godot-vscode-plugin that referenced this issue Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants