我有一个前端有 React 、后端有 .Net Core 的应用程序,我正在尝试调试我的 React 前端,没有扩展和附加到进程,但我收到以下消息错误:
\n\n\n无法连接到 localhost:3000 处的目标:无法连接到 http:localhost:3000 处的调试目标:找不到任何可调试目标。
\n
我正在使用这个launch.json:
{\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}\nRun Code Online (Sandbox Code Playgroud)\n我npm start基本上使用witch启动我的前端react-scripts start。
观察:I\xe1\xb8\xbf 使用 Opera 浏览器。
\nlaunch javascript-debugger reactjs .net-core vscode-debugger