[英]Debug node.js in Visual Studio 2017
I can only choose Browsers for debugging JavaScript in Visual Studio 2017. 我只能选择用于在Visual Studio 2017中调试JavaScript的浏览器。
How can I add node.js for Run or Debugging? 如何添加node.js进行运行或调试?
Click on Debug in left side menu and then click on settings icon. 单击左侧菜单中的“调试”,然后单击“设置”图标。 A list will be displayed you will choose nodejs for nodejs and it will open lauch.json with configurations like this for a workspace 将显示一个列表,您将为nodejs选择nodejs,它将打开lauch.json并为工作区配置如下
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\app.js"
}
Here you can replace app.js with your server file. 在这里,您可以用服务器文件替换app.js。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.