With useWebView=true, debug session stays open indefinitely if program exits before a webview is attached #1666
Closed
Description
opened on Apr 18, 2023
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:
- Clone https://github.com/EricCornelson/WebView2LaunchBugRepro
This repo has a WinUI 3 project that throws an error on startup and causes the issue - Build the project for x86 using
dotnet build /p:Platform=x86
- Launch the debug configuration
- 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