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
[debug] DebugConfigurationProvider not invoked on debug session restart #212005
Comments
It looks like maybe you register your own debug adapter type, and resolve to the 'node' type, is that what's happening in this scenario? |
What should happen in mock-debug is that the config provider isn't called for each restart, but it restarts reusing the original resolved config. But also, restarting actually works differently in the node debug adapter. Possible that this is related to #212823 too but that might be a different scenario |
I pushed a fix for a related bug here #212991 and I think it might fix your issue, but I'm not sure. Our Insiders releases are paused for the Build conference, so this won't be in an Insiders until around next Thursday. You can try then, or build the vscode repo if you want to try it earlier. |
Type: Bug
vscode-jest
extension, the vscode-mock-debug is used here for demonstration because it is easier to set up and reproduce.MockConfigurationProvider.resolveDebugConfiguration
.readme.md
file.readme.md
file and place a breakpoint in any line. Start a debug session that triggers this breakpoint. (use the inline menu on the top of the editor, choose "Debug File".)MockConfigurationProvider.resolveDebugConfiguration
will be invoked and breakpoint will be hit. Let it continue.readme.md
breakpoint. Use the restart button in the debug toolbar to restart the session.MockConfigurationProvider.resolveDebugConfiguration
is not invoked, which deviates from the expected behavior where configuration methods should be invoked for every session initiation, including restarts.This has caused an issue jest-community/vscode-jest#1148, where the "unresolved" debug config was used upon debug session restart.
VS Code version: Code 1.89.0 (b58957e, 2024-05-01T02:10:10.196Z)
OS version: Darwin x64 23.4.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (47)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: