To replicate the issue Run either Bug V1 or Bug V2 debug scripts in VSCode when No breakpoints are enabled. Debugging should run the process succesfully and terminate.
Enable any breakpoint then rerun. Debugger will freeze when launching the worked process.