小编Jea*_*dal的帖子

VS Code 中的调试错误:无法连接到 localhost:3000 处的目标:找不到任何可调试目标

我有一个前端有 React 、后端有 .Net Core 的应用程序,我正在尝试调试我的 React 前端,没有扩展和附加到进程,但我收到以下消息错误:

\n
\n

无法连接到 localhost:3000 处的目标:无法连接到 http:localhost:3000 处的调试目标:找不到任何可调试目标。

\n
\n

我正在使用这个launch.json

\n
{\n    "version": "0.2.0",\n    "configurations": [\n        {\n            "name": "Debug FrontEnd",\n            "port": 3000,\n            "request": "attach",\n            "type": "chrome",\n            "webRoot": "${workspaceFolder}"\n        },\n        {\n            "name": "Debug BackEnd",\n            "type": "coreclr",\n            "request": "attach"\n        }\n    ]\n}\n
Run Code Online (Sandbox Code Playgroud)\n

npm start基本上使用witch启动我的前端react-scripts start

\n

观察:I\xe1\xb8\xbf 使用 Opera 浏览器。

\n

launch javascript-debugger reactjs .net-core vscode-debugger

6
推荐指数
1
解决办法
6863
查看次数