Unbound breakpoint when debugging Electron renderer process in TypeScript #123420
Description
Issue Type: Bug
When debugging an Electron app written in TypeScript, I am not able to debug the renderer process because the breakpoints are unbound.
The problem only happens with the preview JavaScript debugger, i.e., if I turn off debug.javascript.usePreview, the breakpoints are hit.
Also, the problem is intermittent. After following #102493 and enabling tracing, the breakpoints were suddenly hit. Until they weren't anymore.
I get the same behaviour on Linux with Node versions 15.6 - 16.1, and on Windows with Node version 12.19.
I came across the problem while writing a tutorial how to set up Visual Studio Code to debug Electron applications written in TypeScript. This may serve as a minimal example to reproduce the issue.
How to reproduce:
Follow the steps on https://github.com/abartho/electron-typescript-vscode/#electron-typescript-vscode
Trace file:
vscode-debugadapter-f591828d.json.gz
VS Code version: Code 1.56.0 (cfa2e21, 2021-05-04T21:58:14.757Z)
OS version: Linux x64 4.4.0-31-generic
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 x 2499) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on rasterization: disabled_software skia_renderer: enabled_on video_decode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | 1, 0, 1 |
Memory (System) | 7.54GB (0.43GB free) |
Process Argv | --no-sandbox --unity-launch |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | cinnamon |
XDG_CURRENT_DESKTOP | X-Cinnamon |
XDG_SESSION_DESKTOP | cinnamon |
XDG_SESSION_TYPE | undefined |
Extensions (18)
Extension | Author (truncated) | Version |
---|---|---|
namespace | adr | 1.1.2 |
github-markdown-preview | bie | 0.0.2 |
markdown-checkbox | bie | 0.1.3 |
markdown-emoji | bie | 0.1.0 |
markdown-preview-github-styles | bie | 0.1.6 |
markdown-yaml-preamble | bie | 0.0.4 |
xml | Dot | 2.3.2 |
json-tools | eri | 1.0.2 |
dotnet-test-explorer | for | 0.5.4 |
csharpextensions | jch | 1.3.0 |
language-haskell | jus | 2.6.0 |
docomment | k-- | 0.1.2 |
vscode-docker | ms- | 1.10.0 |
csharp | ms- | 1.23.9 |
debugger-for-chrome | msj | 4.12.12 |
classynaming | ref | 1.1.1 |
partial-diff | ryu | 1.3.0 |
haskelly | UCL | 0.5.5 |
Activity