简体   繁体   English

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

[英]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.

相关问题 使用代理目标将用户从 localhost:3000 带到 localhost:3000/auth/google 不起作用 - taking the user from localhost:3000 to localhost:3000/auth/google using proxy target is not working ASP.NET 核心 - 反应:无法将请求代理到 http://localhost:3000/,因为对代理目标的请求失败 - ASP.NET Core - React: Failed to proxy the request to http://localhost:3000/, because the request to the proxy target failed 代理错误:无法将请求/付款从 localhost:3000 代理到 https://localhost:5000/ - Proxy error: Could not proxy request /payment from localhost:3000 to https://localhost:5000/ React 代理错误:无法代理请求 /api/ 从 localhost:3000 到 http://localhost:8000 (ECONNREFUSED) - React Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:8000 (ECONNREFUSED) 代理错误:无法将请求/用户从localhost:3000代理到http:// localhost:3001 / - Proxy error: Could not proxy request /users from localhost:3000 to http://localhost:3001/ MERN 堆栈中的代理错误:无法将请求 /contact 从 localhost:3000 代理到 http://localhost:5000 - Proxy error in MERN stack: Could not proxy request /contact from localhost:3000 to http://localhost:5000 出现错误:无法将请求/ api / plaid / accounts从localhost:3000代理到http:// localhost:5000 / - getting error : Could not proxy request /api/plaid/accounts from localhost:3000 to http://localhost:5000/ 代理错误:无法代理请求/用户从 localhost:3000 到 http://localhost:5000/ - Proxy error: Could not proxy request /users from localhost:3000 to http://localhost:5000/ Firefox 上的 Reactjs cypress:错误:在浏览器中找不到 url 目标 about:blank。 目标是 [] - Reactjs cypress on firefox: Error: Could not find url target in browser about:blank. Targets were [] 提供的目标来源 ('https://docs.google.com') 与收件人窗口的来源 ('http://localhost:3000') 不匹配 - The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('http://localhost:3000')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM