VSCode调试器自动附加到子进程

Bla*_*rog 9 python pydev bottle visual-studio-code

在下面的控制台输出中,它清楚地表明断点在新进程中不起作用.这个调试器设置在哪里附加到子进程?

pydev debugger: starting

pydev debugger: New process is launching (breakpoints won't work in the new process).
pydev debugger: To debug that process please enable 'Attach to subprocess automatically while debugging?' option in the debugger settings.

Bottle v0.12.13 server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.
Run Code Online (Sandbox Code Playgroud)

小智 0

我不知道如何附加到子流程。然而,我在调试 python Flask 时遇到了同样的问题,并且我注意到该问题与我在 app.run 中pydev debugger: New process is launching ...的使用相关。use_reloader=True当我删除它时,断点工作正常!