godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.48k stars 148 forks source link

launch_scene setting not working #551

Closed DeszkaCodes closed 6 months ago

DeszkaCodes commented 7 months ago

Godot version

4.2.stable.mono.official

VS Code version

1.85.1

Godot Tools VS Code extension version

1.3.1

System information

Windows 10

Issue description

Hi!

I cannot get the currently opened scene to start using the extension in version 1.3.1. Whenever I start a debugging session, the main scene starts running.

This is my launch.json.

    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch current scene",
            "type": "godot",
            "request": "launch",
            "project": "${workspaceFolder}",
            "port": 6007,
            "debugServer": 6008,
            "address": "127.0.0.1",
            "launch_game_instance": true,
            "launch_scene": true
        }
    ]
}

Steps to reproduce

  1. Set launch.json to
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch current scene",
            "type": "godot",
            "request": "launch",
            "project": "${workspaceFolder}",
            "port": 6007,
            "debugServer": 6008,
            "address": "127.0.0.1",
            "launch_game_instance": true,
            "launch_scene": true
        }
    ]
    }
  2. Open a scene in Godot
  3. Start debugging with Visual Studio Code
  4. Main scene will open
DaelonSuzuka commented 7 months ago

Yeah, this feature is confusing and doesn't work very well. It's being removed and replaced with something much nicer in the next extension update.

If you want to try and get it working now, I think you need to right click on the scene(the .tscn file) in VSCode's file explorer and select "Set as scene", then you can try to debug.

DeszkaCodes commented 6 months ago

Unfortunately that still does not solve the issue.

DaelonSuzuka commented 6 months ago

Sorry, that's as much as I know about the old settings. You can try the new version by installing master, or wait for the next release to get published (which I'm trying to do very soon).

DeszkaCodes commented 6 months ago

Thank you anyways!