debugging v8::Context::GetMicrotaskQueue中出现致命错误:必须在本机上下文中调用

dgjrabp2  于 2023-08-06  发布在  其他
关注(0)|答案(2)|浏览(139)

我想用Deno附加VS Code的调试器。如果没有断点,它可以正常运行,但如果有断点,则会出现以下错误:

Debugger listening on ws://127.0.0.1:9229/ws/bbf9166c-7c7c-4d0f-a55a-fd2acd54dee9
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
Debugger session started.

#
# Fatal error in v8::Context::GetMicrotaskQueue
# Must be called on a native context
#

Process exited with code 2147483651

字符串
下面是我的launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "request": "launch",
            "name": "Launch Program",
            "type": "node",
            "program": "${workspaceFolder}/main.debug.js",
            "cwd": "${workspaceFolder}",
            "runtimeExecutable": "C:\\Users\\ganuo\\AppData\\Local\\Microsoft\\WinGet\\Links\\deno.EXE",
            "runtimeArgs": [
                "run",
                "--unstable",
                "--inspect-wait",
                "--allow-all",
            ],
            "attachSimplePort": 9229
        }
    ]
}


会发生什么事呢?

0pizxfdo

0pizxfdo1#

在Windows上的最新版本的deno(v1.35.2)上遇到了同样的问题。
我降级到v1.34.3,问题消失了,所以它可能是最新版本中的一个错误。

mrzz3bfm

mrzz3bfm2#

在v1.35.2(linux)中绝对是一个问题

降级如下:

deno upgrade --version 1.35.1

字符串

相关问题