Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code Deno应用程序的Vscode调试错误:无法连接到位于的调试目标_Visual Studio Code_Visual Studio Debugging_Deno - Fatal编程技术网

Visual studio code Deno应用程序的Vscode调试错误:无法连接到位于的调试目标

Visual studio code Deno应用程序的Vscode调试错误:无法连接到位于的调试目标,visual-studio-code,visual-studio-debugging,deno,Visual Studio Code,Visual Studio Debugging,Deno,我正在学习关于Pluralsight的deno课程(deno:入门)。我正在调试模块。当我尝试启动调试器时,我在vscode上收到以下错误消息: 这是我的启动设置: { "name": "Launch Deno", "request": "launch", "type": "pwa-node", "pr

我正在学习关于Pluralsight的deno课程(deno:入门)。我正在调试模块。当我尝试启动调试器时,我在vscode上收到以下错误消息:

这是我的启动设置:

{
        "name": "Launch Deno",
        "request": "launch",
        "type": "pwa-node",
        "program": "affiliate_data_server.ts",
        "cwd": "${workspaceFolder}",
        "runtimeExecutable": "deno",
        "runtimeArgs": [
            "run",
            "--inspect",
            "--allow-all"
        ],
        "attachSimplePort": 8888
    },
调试控制台仅提供以下输出:

C:\Users\kara\.deno\bin\deno.exe运行--检查--允许所有附属数据\u服务器.ts

有时,当我单击取消时,应用程序仍然侦听端口,所以我必须手动终止进程

当我尝试这个配置时

{
        "name": "Node Deno",
        "type": "node",
        "request": "launch",
        "cwd": "${workspaceFolder}",
        "runtimeExecutable": "deno",
        "runtimeArgs": ["run", "--inspect", "-A", "affiliate_data_server.ts"],
        "port": 9229
    },
它会启动服务器,但断点不起作用


解决方案是什么?

我已经通过将Deno降级到1.6.1版解决了这个问题

deno upgrade --version 1.6.1

来源:

既然您有解决办法,请:)