-
Notifications
You must be signed in to change notification settings - Fork 297
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
Chrome shows prompt dialog for "Restore Pages" after every debugging session. #723
Comments
Added! Thanks for pointing that out. |
Thanks for the issue! Can you try this in tomorrow's VS Code Insiders? I've done a lot of refactoring around the remote browser launching mechanics earlier this month and want to make sure the problem still exists before diving in. |
Will do, and I'll report back. Thanks!
…On Wed, Aug 26, 2020 at 12:25 PM Connor Peet ***@***.***> wrote:
Thanks for the issue! Can you try this in tomorrow's VS Code Insiders
<https://code.visualstudio.com/insiders/>? I've done a lot of refactoring
around the remote browser launching mechanics earlier this month and want
to make sure the problem still exists before diving in.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGVMQKAWVG5UDSMF33ALTLSCUZQPANCNFSM4QLA75KQ>
.
|
Still an issue on Insiders. At first the problem was not reproducing. While debugging I switched chrome profiles in order to get the react/redux extensions loaded. Now it won't stop repeating the "Restore pages" problem. The first time I launched it was with:
Switched Chrome profiles. Started getting the problem at this point after I started debugging again. I then also tried changing the launch.json to the below to get the "debug-profile" loaded:
|
Interesting developments. I made it go away but only after some manual surgery, and may have found another issue. It looks like It looks like the debugger is generating and using this path for things: I deleted the Using this launch.json
The "Restore Pages" dialog went away. Cool. However, I then added
restarted debugging and then "Restore pages" started occuring again. Looking at
It appears that the userDataDirectory is still being set to the VS Code path and isn't being respected. |
More data - So after I installed the React tools Chrome extension while the debugger is running, and relaunched the debugger the "Restore Pages" dialog started appearing again. : ( |
As the ultimate way to manually recover from this, I went into the Found on : stackexchange It only lasts temporarily it seems and the problem will start back again |
Someone else found the |
For some reason, I couldn't repro before, but tried again today and was able to do so easily. Looks like we were tearing down the session (including killing the browser) when its stdout closed, but at least on windows this caused us to kill Chrome in the midst of it shutting down, which it registered as a crash. Instead, wait for the process to actually exit. |
Still getting this, is that extension published? |
hm, I can't repro on any of my machines. The extension is published and built-in on VS Code Insiders. Did you open a new workspace folder? To make sure you didn't have any old 'crashed' signals lying around... |
I tried starting clean a couple of times. All the above attempts of cleaning out crashes did not help. Did you try this with multiple chrome profiles on the machine? |
@akutruff are you using the most recent build of Insiders? |
I started completely fresh with latest insiders, it was still reproducing at first, but now maybe is okay? I did the following:
|
I've pushed a change to try to wait for the process to gracefully exit, killing it if it doesn't in 1s. Normally we issue a |
I was encountering this issue today with VSCode 1.52.1 and Debugger for Chrome extension 4.12.11. Adding This issue has only ever occurred for me when launching Chrome through a debug launch config. I have never had the restore pages popup when launching a Chrome debug window through the commandline. It also seemed to happen more often after having stopped the previous Chrome debug session through the VSCode UI stop button (or shift+f5), rather than quitting Chrome through the application menubar. Current config (relevant parts): {
"name": "Launch Chrome",
"type": "pwa-chrome",
"request": "launch",
"browserLaunchLocation": "ui",
"url": "http://localhost:3000",
"userDataDir": "${workspaceFolder}/.vscode/debug-profile-chrome",
"webRoot": "${workspaceFolder}",
"skipFiles": ["<node_internals>/**"]
} Probably unrelated but who knows: That same UI stop button also seems to gracelessly kill node processes that were launched from a launch config, sometimes resulting the following session to fail with a segfault error. Quiting through the VSCode UI: |
You are my hero |
Describe the bug
After a normal debugging session, launching another debugging session always shows "Restore Pages? Chrome did not shutdown correctly."
To Reproduce
Steps to reproduce the behavior:
https://github.com/akutruff/conway-life-react-redux
In container terminal:
Run debugger. Close page either via "x" on chrome or stopping in the debugger.
Reopen chrome.
Log File
vscode-debugadapter-1.json.gz
VS Code Version: 1.48.2
Additional context
I have tried setting up a separate debug profile. Other people experiencing this problem used to use a command line flag that Chrome has since removed. This has been tried:
The text was updated successfully, but these errors were encountered: