You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
Not anything.
The text was updated successfully, but these errors were encountered:
@machineCYC This requires "subProcess": true in launch config to begin with.
It looks like it primarily depends on os.fork. This is not yet supported #943. so you have to switch multiprocessing to use spawn. Also, when using spawn, main module has to finish loading, so use this code to run:
The key part for the workaround set_start_method - so long as you can somehow call that before any processes get spawned, it should work. If you have a single module, then doing that on top level, as in the code above, will suffice. If there are multiple modules, you can add a new module that just does set_start_method, and import it from the rest.
The __name__ == '__main___' bit is a general requirement for any module that has a function invoked via multiprocessing with the "spawn" implementation (which is the only one on Windows, so it's a requirement for portable code). But it's only needed if the module runs any code on top-level that you wouldn't want to also run in the child process when it starts:
@machineCYC commented on Thu Feb 21 2019
Environment data
Expected behaviour
launch.json configuration as follows:
test python code as follows:
Actual behaviour
Set break point in function fib. Must be stop.
But it does not.
Steps to reproduce:
1.Copy the provided configuration to launch.json
2.Copy the provided python code
3.Run debug mode in python code with launch.json
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: