【问题标题】:Multi-process debugging in VSCode PythonVSCode Python 中的多进程调试
【发布时间】:2018-05-14 22:49:28
【问题描述】:

我正在运行一个生成子进程的 python 程序。当一个新进程启动时,我得到:

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.

如何启用此选项?好像是 pydev 选项?

我正在运行 python 3.6,调试器配置类型在 Visual Studio Code 中设置为 pythonExperimental

【问题讨论】:

    标签: python visual-studio-code


    【解决方案1】:

    在 django 的调试设置中检查 args,使用 "--noreload"

        "args": [
            "runserver",
            //reload server everytime files changed
            "--noreload",
            "--nothreading"]
    

    【讨论】:

      猜你喜欢
      • 2012-06-21
      • 1970-01-01
      • 2020-08-25
      • 1970-01-01
      • 1970-01-01
      • 2019-07-01
      • 1970-01-01
      • 2021-07-26
      • 2021-03-14
      相关资源
      最近更新 更多