Try...Except doesn't catch exceptions properly when running scripts.
As far as my testing goes, this is an issue with this extension, not Blender or the Python API. Which means this extension is limiting normal python functionality.
Edit 1: There is no reason for execution to halt at every exception... wait... this makes sense now
Edit 1.0.1: Thanks for being my rubber ducky here, as I was typing out the edit it made sense that it's my debugger stopping execution and not this extension. facepalm There goes an hour of fuming at why it's doing this lol
Steps to Reproduce:
Start blender using Command Pallet > Blender: Start
Create a script file with a simple try...except, e.g.:
try:
assert False, "Hello Blender!"
except Exception as e:
print(e)
3. Run the script file using Command Pallet > Blender: Run Script
**Output:**
Debugger fails at the assertion. Execution is then halted and script doesn't continue executing until the "Continue" button is pressed.
**Expected Output:**
If you run this file using:
Nevermind, thanks for being my rubber ducky yall, as I was typing an edit, I figured out that I had automatic breakpoints at Raised Exceptions enabled in VSCode
Version 0.0.16:
Try...Except doesn't catch exceptions properly when running scripts.
As far as my testing goes, this is an issue with this extension, not Blender or the Python API. Which means this extension is limiting normal python functionality.
Edit 1: There is no reason for execution to halt at every exception... wait... this makes sense now Edit 1.0.1: Thanks for being my rubber ducky here, as I was typing out the edit it made sense that it's my debugger stopping execution and not this extension. facepalm There goes an hour of fuming at why it's doing this lol
Steps to Reproduce:
try: assert False, "Hello Blender!" except Exception as e: print(e)
import runpy output = runpy.run_path("path/to/script/")