[Frage] VS Code version 1.93.0

Schlagworte:
  • Allplan 2024
  • PythonParts

Hello:

Is it possible that version 1.93.0 of VS Code is creating problems?
When updating I have lost the configuration that connects to the Allplan API, and in the forum I cannot find Bart's post where he explains it
Thank you

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

Hi Javier,

Yes, in the latest update of the VS-Code the configuration schema for python debugger was changed. If you are using VS-Code in the version 1.93 or newer, open the .code-workspace in a text editor and replace this entry:

        {
            "name": "Attach to Allplan",
            "port": 5678,
            "host": "localhost",
            "request": "attach",
            "type": "python",
            "justMyCode": false,
        },

with following:
        {
            "name": "Attach to Allplan",
            "connect": {
                "port": 5678,
                "host": "localhost",
            },
            "request": "attach",
            "type": "debugpy",
            "justMyCode": false,
        },

Best,
Bart

Hi Javier,

Yes, in the latest update of the VS-Code the configuration schema for python debugger was changed. If you are using VS-Code in the version 1.93 or newer, open the .code-workspace in a text editor and replace this entry:

        {
            "name": "Attach to Allplan",
            "port": 5678,
            "host": "localhost",
            "request": "attach",
            "type": "python",
            "justMyCode": false,
        },

with following:
        {
            "name": "Attach to Allplan",
            "connect": {
                "port": 5678,
                "host": "localhost",
            },
            "request": "attach",
            "type": "debugpy",
            "justMyCode": false,
        },

Best,
Bart