JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
580 stars 75 forks source link

README.md: Explain how to debug into third party library code #203

Closed johschmitz closed 1 month ago

Mateusz-Grzelinski commented 2 months ago

Good catch, I thought this was documented already.

I have some suggestions, will write --tomorrow-- later

On 20 Sept 2024, 21:24, at 21:24, Johannes Schmitz @.***> wrote:

You can view, comment on, or merge this pull request online at:

https://github.com/JacquesLucke/blender_vscode/pull/203

-- Commit Summary --

  • README.md: Explain how to debug into third party library code

-- File Changes --

M README.md (9)

-- Patch Links --

https://github.com/JacquesLucke/blender_vscode/pull/203.patch https://github.com/JacquesLucke/blender_vscode/pull/203.diff

-- Reply to this email directly or view it on GitHub: https://github.com/JacquesLucke/blender_vscode/pull/203 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

Mateusz-Grzelinski commented 2 months ago

Tell me what you think (I think I wrote the truth, but actually I did not check):

How can I debug into third party library code from within my addon code?

You can debug addon code by setting breakpoints in the VS Code debugger (red dot). By default debug breakpoints work only for folders opened in current workspace.

If you want to hit breakpoints set in third party modules (for example: site-packages or Blender internal python files) you need to disable VS code setting blender.addon.justMyCode

### How can I debug into third party library code from within my addon code?

You can debug addon code by setting breakpoints in the VS Code debugger (red dot).
By default debug breakpoints work only for folders opened in current workspace.

If you want to hit breakpoints set in third party modules (for example: `site-packages` or Blender internal python files) you need to disable VS code setting [`blender.addon.justMyCode`](vscode://settings/blender.addon.justMyCode)
johschmitz commented 1 month ago

Alright, gave it another try combining your ideas and some other things I saw.

johschmitz commented 1 month ago

Sidenote: Thanks for maintaining this. I am using it to work on https://github.com/johschmitz/blender-driving-scenario-creator and debug into https://github.com/pyoscx/scenariogeneration