Last active
December 26, 2021 16:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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