在vscode生成的launch.json配置文件:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "启动一个独立的 Chrome",
"url": "http://localhost:7777",
"webRoot": "${workspaceRoot}"
},
{
"type": "chrome",
"request": "attach",
"name": "监听一个已经启动调试模式的Chrome",
"port": 9222,
"url": "http://localhost:7777",
"webRoot": "${workspaceRoot}"
}
]
}
选择node.js运行即可。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)