vscode 调试 deno 脚本停止 decode.json.dew.js?
vscode debug deno script stops a decode.json.dew.js?
我在 vscode
中调试了 deno
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Deno",
"type": "pwa-node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": ["run", "--inspect-brk", "-A", "--allow-net", "adBlockFinder.1m.ts"],
"attachSimplePort": 9229
}
]
}
但它总是从破坏其他一些名为 decode.json.dew.js
的文件开始(不是我创建的)
“正在调试”(按播放图标)到达我设置的下一个断点。
有人知道如何避免每次都按“调试播放”吗?
不幸的是,我认为这是目前使用 --inspect-brk
(相对于 --inspect
)时的预期行为。从手册第 2.7 节开始,Debugging your code:
You might notice that DevTools pauses execution on the first line of _constants.ts
instead of file_server.ts
. This is expected behavior caused by the way ES modules are evaluated in JavaScript (_constants.ts
is left-most, bottom-most dependency of file_server.ts
so it is evaluated first).
我在 vscode
中调试了 deno.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Deno",
"type": "pwa-node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": ["run", "--inspect-brk", "-A", "--allow-net", "adBlockFinder.1m.ts"],
"attachSimplePort": 9229
}
]
}
但它总是从破坏其他一些名为 decode.json.dew.js
的文件开始(不是我创建的)
“正在调试”(按播放图标)到达我设置的下一个断点。
有人知道如何避免每次都按“调试播放”吗?
不幸的是,我认为这是目前使用 --inspect-brk
(相对于 --inspect
)时的预期行为。从手册第 2.7 节开始,Debugging your code:
You might notice that DevTools pauses execution on the first line of
_constants.ts
instead offile_server.ts
. This is expected behavior caused by the way ES modules are evaluated in JavaScript (_constants.ts
is left-most, bottom-most dependency offile_server.ts
so it is evaluated first).