Skip to content

Instantly share code, notes, and snippets.

@AlansCodeLog
Last active December 26, 2021 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlansCodeLog/ff1b246a8e31938e1c3dbfdcbb90522f to your computer and use it in GitHub Desktop.
Save AlansCodeLog/ff1b246a8e31938e1c3dbfdcbb90522f to your computer and use it in GitHub Desktop.
Run a simple ptvsd/debugpy server, for debugging... debuggers. #repo-extras #project_blender-debugger #blender
# pre addon version 2.0.0
import ptvsd
ptvsd.enable_attach(("0.0.0.0", 3000))
print ("ptvsd version is: " + ptvsd.__version__)
print("Waiting")
ptvsd.wait_for_attach()
print("Connected")
input('Press Enter to Exit')
# addon version 2.0.0 +
import debugpy
debugpy.listen(("0.0.0.0", 3000))
print("debugpy version is: " + debugpy.__version__)
print("Waiting")
debugpy.wait_for_client()
print("Connected")
input('Press Enter to Exit')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment