-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Running Chrome Debug Instance when the Chrome window is open #927
Comments
In vscode, the following configuration works: {
"configurations": [
{
"type": "chrome",
"name": "http://localhost:3000",
"request": "launch",
"url": "http://localhost:3000"
}
]
} A new Chrome window opens, even if you already have others open. |
A contribution that fixes that would be welcome. |
@wesleybl Did you tried using Remote Firefox Debugger Debug configuration with this React App? It looks like Chrome Debug Adapter, for some reason, fails to resolve Tab by address and internally uses the script file path instead of the page address. So it fails finding a correct tab because the script path has nothing common with the URL provided. |
@vrubezhny using There must be a way to make it work in Chrome, since it works in |
@vrubezhny but why does it work when Chrome is closed? I went to see how this works in VS Code, and it always opens a new Chrome window, regardless of having an instance of Chrome already open. Shouldn't it be like that here too instead of trying to open a new tab? |
There is most likely a way to make things work, but Wild Web Developer first needs to complete #555 to behave more closely to VSCode. |
@mickaelistria but shouldn't it work with the current debug? Firefox debug, for example, works with the current debug. |
@mickaelistria do you know if PR #1359 will fix this issue? |
No, sorry, but I suggest you give it a try yourself; just by installing latest snapshot ;) |
@mickaelistria but won't PR #1359 change the way chrome debugging works? Wouldn't it be better to wait for it to be merged? |
ah sorry, I thought it was already merged. Thanks for the heads-up! |
Snapshots with newer Chrome debug adapter should be available once https://ci.eclipse.org/wildwebdeveloper/job/Wildwebdeveloper/job/master/811/ completes, in ~15 minutes, |
When the Chrome window is open and I try to run
Chrome Debug Instance
, I get the error:The application does not appear, and a blank tab is loaded, at the url "about:blank".
Steps to reproduce:
npx create-react-app my-app cd my-app
my-app
folder.my-app/package.json
adding the following line to thescripts
key:Run -> Debug Configurations -> Running Chrome Debug Instance
And create a new configuration.
6. Fill the URL field with: http://localhost:3000
7. Click in Apply
8. Click in Debug
When all Chrome windows are closed, the issue does not occur. However, it is bad to have to close Chrome every time we go to debug.
Refs:
microsoft/vscode-chrome-debug-core#324
https://stackoverflow.com/questions/45592581/cannot-debug-in-vs-code-by-attaching-to-chrome
Environment
Eclipse 4.25.0
Java 18
Ubuntu 22
node 16.17.0
Chrome 105
wildweb 0.15.1
The text was updated successfully, but these errors were encountered: