-
Notifications
You must be signed in to change notification settings - Fork 295
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
pwa-chrome launch and attach doesn't hit break points #271
Comments
Same issue with attach. |
@alexr00 can you enable trace: true and share your logs files? @chrmarti in your screenshot, I don't see any sessions in the Call Stack view. This indicates that we couldn't find a target to attach to, most likely because we don't have a page matching the |
@isidorn @weinand Alex and I debugged this over Live Share this morning (debugging over live share is super cool, by the way!) and it seemed like it might be some VS Code related thing. Here's what happens. Like all sessions in js-debug, there's the top level "wrapper" sessions, and then debugees come in as children. The top level session works fine and it creates a session which is loopbacked to VS Code1. The I see this go through the Chrome config provider, which doesn't do much except for apply defaults that we actually don't really care about for delegate sessions. This is the config that gets returned. No errors get thrown as far as I can see. And then, nothing happens. The SessionManager (which is the registered debug descriptor factory) doesn't get a request, the attachment process just stops. As with all the best bugs, I can't reproduce this on my Windows or OSX machines. Any ideas on what might be happening? |
So the gist is: @alexr00 Does it reproduce if you manually click on the child session in the callstack view? |
@connor4312 if I interpret your last comment correctly you are saying that no child session is created? |
@weinand that's correct, the issue is that the child session is never actually created. |
@connor4312 @isidorn so we only need to debug why "startDebugging" fails to call the factory. @connor4312 have you tried that? |
Yes. I can verify:
|
@isidorn there's nothing in the callstack to click on. |
@alexr00 yes, there is no debug session at all, so the issue is completely unrelated to breakpoints. |
I'm seeing this happening very reliably in remote debugging (#337) iff I start the server before I start the debug session--which allows the page to load instantly (without the server, the remote debugging process launches chrome which then loads until the server starts). Seems like a race condition. Adding a bunch of console.logs (since debugging it changes timing and makes it work 😛 ):
If I wrap the |
@connor4312 we could do a meeting to look into this issue together. If you would like that feel free to book something in my calendar. |
Should be fixed via microsoft/vscode#91969 Thanks all for providing details. |
Confirmed that this is fixed :) |
@alexr00 thanks a lot! |
Testing microsoft/vscode#89393 on Windows
Expected: The break point resolves and is hit when the code path is run.
Actual: I can't get any breakpoints to resolve so none are hit.
I tried commenting out the "Settings for js-debug" that are in that launch config, and it made no difference.
The text was updated successfully, but these errors were encountered: