Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCodium/VSCode: Remote debugger #206

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

amrsoll
Copy link
Collaborator

@amrsoll amrsoll commented Jun 28, 2022

Adds config files for Codium, / VS Code to

  • start Blender with the CADSketcher add on
  • Create a remote debug session in Blender
  • Connect to said remote debugger

Introduces optional dependency to colorama for coloring stdout if it's on a terminal

I will make a short write-up of the steps to set the dev env up for linux (requires to add a symlink of the CAD_Sketcher repo to the Blender add-on folder)

@amrsoll amrsoll changed the title Codium/VS Code: Remote debugger VSCodium/VSCode: Remote debugger Jun 28, 2022
@amrsoll
Copy link
Collaborator Author

amrsoll commented Jun 28, 2022

Screenshot of use-case

image

@hlorus
Copy link
Owner

hlorus commented Jun 30, 2022

I'm not sure if such config files should be stored in the repository or better just be ignored. I would propose to merge this and if contributors are having issues with this we can add the files to .gitignore then.

Adds config files for Codium, / VS Code to
- start Blender with the CADSketcher add on
- Create a remote debug session in Blender
- Connect to said remote debugger
@amrsoll amrsoll force-pushed the feat/codium/vscode_debugger branch from 0b7f18b to 4a4b7b0 Compare June 30, 2022 14:52
@hlorus hlorus merged commit 3f52453 into hlorus:main Jul 1, 2022
@hlorus
Copy link
Owner

hlorus commented Jul 1, 2022

Seems to work great on my end so far, awesome!

@amrsoll
Copy link
Collaborator Author

amrsoll commented Jul 3, 2022

I forgot to post before you merged the PR 😅

I'm not sure if such config files should be stored in the repository or better just be ignored.

Usually they are stored in the repo, unless the maintainer is against having IDE-specific integration of their project.

if contributors are having issues with this we can add the files to .gitignore then.

VS Code/Codium shows a warning when it detects this folder in a new project and asks the developer if they want to activate it.

In this case, it creates 2 new debugger possibilities; both allow the use of line breaks and remote debugger inside a Blender process.

  • Pytest+debugger : Runs the tests with Blender running background (no gui)
  • Interactive+debugger: Starts Blender with the add-on

As pointed out on Discord, it would seem most people are perfectly happy with the "Blender Development" plugin, I simply have had shortcomings with it.

@hlorus
Copy link
Owner

hlorus commented Jul 4, 2022

VS Code/Codium shows a warning when it detects this folder in a new project and asks the developer if they want to activate it.

Then this shouldn't be a problem anyway if other contributers can just opt out, that's great.
What's not nice currently is that these files are also downloaded by users but that's probably another topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants