Skip to content

With useWebView=true, debug session stays open indefinitely if program exits before a webview is attached #1666

Closed
@EricCornelson

Description

Describe the bug
When debugging an app with a WebView2 control, if the program exits before a WebView2 is attached, the debug session stays open indefinitely waiting for the WebView2.

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/EricCornelson/WebView2LaunchBugRepro
    This repo has a WinUI 3 project that throws an error on startup and causes the issue
  2. Build the project for x86 using dotnet build /p:Platform=x86
  3. Launch the debug configuration
  4. The app will launch, throw the error, and exit, but with no notification, and the debug session continues running.

VS Code Version:
Version: 1.78.0-insider (user setup)
Commit: 95396f14dbae4d5def754d8635010f8e5743f56c
Date: 2023-04-18T05:20:56.891Z
Electron: 22.4.5
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: Yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions