blender_vscode icon indicating copy to clipboard operation
blender_vscode copied to clipboard

Attaching / debugging doesn't work

Open benthillerkus opened this issue 4 years ago • 4 comments

I can see the console logs inside VS Code and when I close Bledner the tasked in VScode in being closed too, so they are connected. Breakpoints don't work though

I have no clue what is causing this, because I know it worked at some point. Currently I have my project opened in VSCode and the folder with add-on is linked inside my current blender versions script folder via a junction. I'm running Windows 10 1903, the latest version of your add-on, vs-code and the newest build bot build of blender.

benthillerkus avatar Aug 27 '19 18:08 benthillerkus

Are there some kind of logs or additional information that I could add?

benthillerkus avatar Aug 29 '19 10:08 benthillerkus

Hmm... So I moved the folder of my blender installation removed all junctions, set the correct paths and the add-on actually worked. I then terminated the session with the red plug icon, and after that debugging stopped working on subsequent runs. Again: your add-on has no trouble creatin the symlink, loading the add-on, creating a debug session and loading itself into blender, it's jsut that debuggin doesn't work.

benthillerkus avatar Aug 30 '19 14:08 benthillerkus

Your addon need be placed in blender addon folder, like a "...\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons" Otherwise this extension create link to the place your addon and this work fine in first look, but breakpoints not working. =/

jaxxtrend avatar Sep 26 '19 16:09 jaxxtrend

I'm having a similar problem. It never enters the body of code. Breakpoints inside the main body never execute, breakpoints in the "import" section work... and step through the code, and it just skips over everything inside "def".

Note: My script creates a button to push in a panel, which the debugger executes. It does not actually add the panel in blender, nor does it ever enter into the code the button executes.

ZapUser77 avatar Dec 18 '19 04:12 ZapUser77