[英]Error Debugging in VS Code: Cannot connect to the target at localhost:3000: could not find any debuggable target
I have an application with React on frontend and.Net Core on backend and i am trying to debug my react frontend, without extensions and attaching to the process, but i am getting the message error bellow:我有一个前端有 React 和后端有.Net Core 的应用程序,我正在尝试调试我的反应前端,没有扩展并附加到进程,但我收到以下消息错误:
Cannot connect to the target at localhost:3000: Could not connect to debug target at http:localhost:3000: Could not find any debuggable target.无法连接到 localhost:3000 的目标:无法连接到 http:localhost:3000 的调试目标:找不到任何可调试的目标。
I'm using this launch.json
:我正在使用这个launch.json
:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug FrontEnd",
"port": 3000,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
{
"name": "Debug BackEnd",
"type": "coreclr",
"request": "attach"
}
]
}
I start my frontend using npm start
witch is basically react-scripts start
.我使用npm start
开始我的前端,基本上是react-scripts start
。
Obs.: Iḿ using opera browser.观察:我ḿ使用歌剧浏览器。
After a search, all I could found was this issue .经过搜索,我只能找到这个问题。
Although Opera is now based on Chromium, it's not possible to debug it using VSCode yet.尽管 Opera 现在基于 Chromium,但还不能使用 VSCode 对其进行调试。 Maybe someone can come with a kind of workaround for it.也许有人可以为此提供一种解决方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.