Skip to content

Chrome shows prompt dialog for "Restore Pages" after every debugging session. #723

@akutruff

Description

@akutruff

Describe the bug

After a normal debugging session, launching another debugging session always shows "Restore Pages? Chrome did not shutdown correctly."

Screenshot of annoying dialog

To Reproduce
Steps to reproduce the behavior:

  1. Opened the following project in vs code via; "Remote-Containers: Open repository in container"
    https://github.com/akutruff/conway-life-react-redux

In container terminal:

cd app
yarn install
yarn start
  1. Run debugger. Close page either via "x" on chrome or stopping in the debugger.

  2. 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:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceFolder}",
            "userDataDir": false,
            "runtimeArgs": [
                "--profile-directory=debug-profile",
                "--noerrors", "--disable-session-crashed-bubble", "--disable-infobars"
              ],
            "trace": true
        }
    ]
}

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions