![](/img/trans.png)
[英]Does VS 2017 support break point debugging of node.js typescript code of a merged file?
[英]Node.js TypeScript debugging in VS Code
有人可以提供一個 VS Code 配置示例,讓我能夠:
這是開箱即用的支持嗎? 可以以某種方式使用nodemon
嗎? 謝謝。
是的,您可以使用 nodemon。 在您的 launch.json 中,如果您觸發智能感知(ctrl+space),您將看到帶有建議啟動配置的片段。 有一個 nodemon 看起來像這樣:
{
"type": "node",
"request": "launch",
"name": "nodemon",
"runtimeExecutable": "nodemon",
"runtimeArgs": [
"--debug=5858"
],
"program": "${workspaceRoot}/app.js",
"restart": true,
"port": 5858,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
文檔解釋了它的工作原理: https : //code.visualstudio.com/docs/editor/node-debugging#_restaring-debug-sessions-automatically-when-source-is-edited
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.