小编Clo*_*oud的帖子

在 python 中,VSCode 调试器不会单步执行外部代码。无法弄清楚如何编辑 launch.json 中的“justMyCode”

我一直在参考https://code.visualstudio.com/docs/python/debugging#_justmycode 以及 如何在 VSCode 调试器中禁用“仅我的代码”设置?

尽管进行了多次尝试,仍然无法弄清楚在 launch.json 中将 "justMyCode": false 放在哪里。在我尝试添加它的每个地方,编辑器都会说“不允许使用 Property justMyCode ”

下面是我的 launch.json 的副本。有人可以告诉我我应该做什么吗?

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",

    "configurations": [
        {
            "name": "Python: Current File (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python: Remote Attach",
            "type": "python",
            "request": "attach",
            "port": 5678,
            "host": "localhost",
            "pathMappings": [
                {
                    "localRoot": …
Run Code Online (Sandbox Code Playgroud)

python visual-studio-code

8
推荐指数
2
解决办法
6788
查看次数

标签 统计

python ×1

visual-studio-code ×1