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

Breakpoint aborts session with Godot 4.4dev7 #772

Open
eyeree opened this issue Jan 6, 2025 · 2 comments
Open

Breakpoint aborts session with Godot 4.4dev7 #772

eyeree opened this issue Jan 6, 2025 · 2 comments
Labels

Comments

@eyeree
Copy link

eyeree commented Jan 6, 2025

Godot version

v4.4.dev7.official [46c8f8c5c]

VS Code version

1.96.2

Godot Tools VS Code extension version

master

System information

10.0.26100 Build 26100

Issue description

Heads up that breakpoints don't seem to work with godot 4.4 dev 7. When a breakpoint is hit the debug session is aborted.

2025-01-05 16:04:34.643 [info] Creating debug session
2025-01-05 16:04:34.644 [info] Project version identified as 4.4
2025-01-05 16:04:34.646 [info] Starting debug controller in 'launch' mode
2025-01-05 16:04:34.720 [info] Starting game process
2025-01-05 16:04:34.720 [info] Using 'editorPath.godot4' from settings
2025-01-05 16:04:34.720 [info] Verifying version of 'C:\Users\mike\Documents\Godot\Godot_v4.4-dev7_win64_console.exe'
2025-01-05 16:04:34.720 [info] Verification result: SUCCESS, version: "4.4"
2025-01-05 16:04:34.720 [info] Custom scene argument provided: pinned
2025-01-05 16:04:34.720 [info] Launching game process using command: '"C:\Users\mike\Documents\Godot\Godot_v4.4-dev7_win64_console.exe" --path "C:\Users\mike\Documents\cab" --remote-debug "tcp://127.0.0.1:62853" "c:\Users\mike\Documents\cab\mode\battle\battle_mode.tscn"'
2025-01-05 16:05:15.216 [info] Aborting debug controller
2025-01-05 16:05:15.216 [info] Stopping debug controller
2025-01-05 16:05:15.217 [info] Stopping debug controller

Steps to reproduce

  1. create a breakpoint
  2. start debugging
  3. debug session is aborted when breakpoint is hit
@eyeree eyeree added the bug label Jan 6, 2025
@ecosky
Copy link

ecosky commented Jan 18, 2025

I think I'm seeing the same problem with the latest main branch of Godot as of today, v4.4.beta.custom_build [ab26ff5ec]

I was however able to stop at a breakpoint during the first parse of a .gd file, outside the scope of a function where a variable was being declared. Once it hit the breakpoint inside the _ready() function however, the debug session terminated.

Note the above was when I tried to debug the current file. When I try to "Run and Debug" to launch the project, the app launches but none of the breakpoints seem to trigger. A deliberate code error will cause the app to freeze, but the debugger doesn't get notified of an exception.

The issues I'm seeing might be a misconfiguration, but I do have the debug port set to match the editor and it's kinda working, so I suspect this is an actual bug.

@ecosky
Copy link

ecosky commented Jan 19, 2025

I made a PR that I think should fix this, #777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants