hextantstudios / hextant_python_debugger

Allows debugging of Blender Python add-ons using Visual Studio Code or Visual Studio 2019 v16.6 or later.
16 stars 1 forks source link

Debugger no longer stopping at break points #3

Open blackears opened 4 months ago

blackears commented 4 months ago

Came across this debugger and started using it. For about two weeks it was working well - I was able to attach to an addon I wrote which was running in Blender and was even able to stop at breakpoints and step through it. And then for some reason it stopped working. I don't know what might have changed - I'm still able to connect to my Blender session and the output from it is still printed to my Visual Studio Code console, but stopping at breakpoints is no longer happening.

On the Problems tab in the build output area I have 16 warnings that are variations of Call expression not allowed in type expression Pylance(reportInvalidTypeForm). not sure if that is related or not.

What can I do to get breakpoints working again?

{
    "configurations": [
        {
            "name": "Python Debugger: Remote Attach",
            "type": "debugpy",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}",
                    "remoteRoot": "${workspaceFolder}"
                }
            ]
        }
    ]
}
Andrej730 commented 4 months ago

Blender version? Don't have any issues on 4.1.

blackears commented 4 months ago

I'm using 4.1 too. And it was working for the first week I was using it, but something must have changed and it is now no longer breaking. Not sure if it's on the Blender side or the Visual Studio Code side.