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

Conditional breakpoints are considered "not supported by this debugger" #633

Open
hsandt opened this issue Mar 28, 2024 · 1 comment
Open
Labels

Comments

@hsandt
Copy link

hsandt commented Mar 28, 2024

Godot version

v4.2.1.stable.official [b09f793f5]

VS Code version

1.86.2

Godot Tools VS Code extension version

2.0.0

System information

Ubuntu 22.04.4 LTS 22.04 - X11 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 860M (nvidia; 535.161.07) - Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 Threads)

Issue description

I added a conditional breakpoint that should be false, but it still hits. Then I noticed it was marked with a warning sign, and on hover it says:

Breakpoints of this type are not supported by the debugger
Condition: false

image

#267 is closed so conditional breakpoints should be supported.

My launch.json is:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "GDScript: Launch Project",
            "type": "godot",
            "request": "launch",
            "project": "${workspaceFolder}",
            "debug_collisions": false,
            "debug_paths": false,
            "debug_navigation": false,
            "additional_options": ""
        }
    ]
}

Am I missing some configuration?

Steps to reproduce

  1. Open Godot project folder
  2. Create launch.json as above
  3. Add conditional breakpoint to some .gd script on code that is run. Set condition to false to make it obvious it shouldn't hit.
  4. Launch Godot project via VS Code.
  5. Observe how it breaks
  6. Hover conditional breakpoint to see warning message
@hsandt hsandt added the bug label Mar 28, 2024
@atirut-w
Copy link

I think this might be more of a missing feature, but it could probably be added on the IDE side by manually evaluating conditions.

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