godotengine / godot-csharp-vscode

Debugger and utilities for working with Godot C# projects in VSCode
https://marketplace.visualstudio.com/items?itemName=neikeq.godot-csharp-vscode
MIT License
145 stars 27 forks source link

Incompatible with recent VSC Version #29

Closed eazrael closed 2 years ago

eazrael commented 3 years ago

Win10 64bit / Godot_v3.3.4-stable_mono_win64 / VSC 1.60.2 / C# Tools for Godot 0.1.3 / .Net 5.0

Apparent Issue: No launch.json can be generated. When starting launch.json generation in debug pane, no "C# Godot" option is provided. Starting project in Godot works as long as "waiting for debugger" is disabled. When "waiting for debugger" is enabled, game will crash with a timeout.

Steps to reproduce:

It seems that in package.json -> contributes->debuggers->"enableBreakpointsFor" is no longer supported as when the package.json is opened it will be flagged as not allowed "Property enableBreakpointsFor is not allowed." -> https://code.visualstudio.com/updates/v1_42

Maybe the cause or not. Seems that raulsntos Pull Request #22 also corrects this.

Unfortunately I was not able to build the extension myself so I cannot test it that really fixes this problem :-(

wenbingzhang commented 3 years ago

I also encountered the same problem

wenbingzhang commented 3 years ago

image I manually modified the configuration of the vscode plug-in

eazrael commented 3 years ago

I did something similar in the package.json in the installed extension directory:

...
    "contributes": {
        "breakpoints": [
            {
                "language": "csharp"
            }
        ],
        "debuggers":  ...

After disabling and enabling the extension it worked.