Skip to content
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 Console Shows wrong source for logpoint messages #107860

Closed
KyleRAnderson opened this issue Oct 1, 2020 · 12 comments
Closed

Debug Console Shows wrong source for logpoint messages #107860

KyleRAnderson opened this issue Oct 1, 2020 · 12 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@KyleRAnderson
Copy link

Issue Type: Bug

After debugging with the "Run Current File" configuration, the output from logpoints within that debug session showed up under the label of "Debug Unit Tests" (from the Python extension). This fixed itself when I switched to and from the debug sources.

  1. Run Unit tests (in my case, I was using the Python extension) in Debug mode.
  2. Run another launch configuration that has logpoints enabled in debug mode, while the debug console is not in focus.
  3. Navigate to the debug console and verify that the correct console is showing the correct output.

I'm not sure if there is something specific to this having been unit tests running or not, or if it is possibly a problem with the Python extension.

Screenshot:
image
In the above screenshot, the output that is being displayed was generated by the "Run Current File" launch configuration, but initially shows up under "Debug Unit Tests". This is the problem.

VS Code version: Code 1.49.2 (e5e9e69, 2020-09-24T16:29:41.983Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.128-microsoft-standard

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.92GB (1.13GB free)
Process Argv --folder-uri vscode-remote://wsl%2Bubuntu/home/kylek/repos/uwaterloo/se_212_george --crash-reporter-id 732ba2ab-8246-4b39-aa91-70d245f12e42
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 4.19.128-microsoft-standard
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
Memory (System) 6.14GB (5.24GB free)
VM 0%
Extensions (25)
Extension Author (truncated) Version
remote-containers ms- 0.140.1
remote-wsl ms- 0.44.5
slim sia 0.1.2
vscode-ruby win 0.27.0
rails bun 0.16.7
vscode-gemfile bun 0.4.0
solargraph cas 0.21.1
vscode-eslint dba 2.1.8
gitlens eam 10.2.2
prettier-vscode esb 5.7.1
todo-tree Gru 0.0.178
vscode-rufo jnb 0.0.1
vscode-docker ms- 1.6.0
python ms- 2020.9.112786
vscode-pylance ms- 2020.9.7
ruby reb 0.27.0
java red 0.68.0
slim sia 0.1.2
vscodeintellicode Vis 1.2.10
vscode-java-debug vsc 0.28.0
vscode-java-dependency vsc 0.13.0
vscode-java-pack vsc 0.10.0
vscode-java-test vsc 0.24.2
vscode-maven vsc 0.24.2
vscode-ruby win 0.27.0
@isidorn
Copy link
Contributor

isidorn commented Oct 1, 2020

This sounds like an issue in VS Code. However I can not reproduce it.
@KyleRAnderson is it possible to put some reopsitory on GitHub which I can clone and easily reproduce this?
Also can you reproduce with vscode insiders https://code.visualstudio.com/insiders/

@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster labels Oct 1, 2020
@KyleRAnderson
Copy link
Author

Hi @isidorn.

I have made a repository in which I can reproduce the bug consistently: https://github.com/KyleRAnderson/VSCode-bug-reproducible.

There are instructions in the repository's README with what you can do to get it to happen again.

Unfortunately I do not have time right now to reproduce it on VSCode insiders, though hopefully the steps above are enough.

Thanks!

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Oct 1, 2020
@isidorn isidorn added this to the September 2020 milestone Oct 1, 2020
@isidorn isidorn closed this as completed in b8e87aa Oct 1, 2020
@isidorn
Copy link
Contributor

isidorn commented Oct 1, 2020

@KyleRAnderson thanks a lot for great steps. I have pushed a fix and VS Code insiders should have the fix tomorrow. So if you have time would be great if you doulbe check. Though I verified the fix fixes the issue here.

@KyleRAnderson
Copy link
Author

Awesome, I'm really glad to hear that it's been fixed so quickly, I only found it yesterday. I'll try it out on VSCode insiders tomorrow,
I should have time for that. Thank you @isidorn!

@isidorn
Copy link
Contributor

isidorn commented Oct 2, 2020

Great, thanks!

@bpasero bpasero added the author-verification-requested Issues potentially verifiable by issue author label Oct 2, 2020
@github-actions
Copy link

github-actions bot commented Oct 2, 2020

This bug has been fixed in to the latest release of VS Code Insiders!

@KyleRAnderson, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text /verified to let us know. If not, please ensure you're on version 5052a7b of Insiders (today's or later - you can use Help: About in the command pallete to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!

@KyleRAnderson
Copy link
Author

KyleRAnderson commented Oct 2, 2020

I tried this out on VSCode insiders, I can confirm that it is functioning as expected now.

@isidorn
Copy link
Contributor

isidorn commented Oct 2, 2020

Great, thanks for letting us know. Adding verified label.

@isidorn isidorn added the verified Verification succeeded label Oct 2, 2020
msftwindowslinux pushed a commit to msftwindowslinux/vscode that referenced this issue Oct 2, 2020
msftwindowslinux pushed a commit to msftwindowslinux/vscode that referenced this issue Oct 2, 2020
roblourens added a commit that referenced this issue Oct 6, 2020
This reverts commit b8e87aa.
This was referenced Oct 6, 2020
roblourens added a commit that referenced this issue Oct 7, 2020
roblourens added a commit that referenced this issue Oct 7, 2020
Revert "fixes #107860"

This reverts commit b8e87aa.
@isidorn
Copy link
Contributor

isidorn commented Oct 19, 2020

We had to revert the fix, thus reopening this.
@roblourens let me know if I missed a commit and if you also pushed a fix for this.

@isidorn isidorn reopened this Oct 19, 2020
@isidorn isidorn removed the verified Verification succeeded label Oct 19, 2020
@isidorn isidorn modified the milestones: September 2020, October 2020 Oct 19, 2020
jmannanc pushed a commit to jmannanc/vscode that referenced this issue Oct 26, 2020
@KyleRAnderson
Copy link
Author

/verified

@isidorn isidorn added the verified Verification succeeded label Oct 27, 2020
@isidorn
Copy link
Contributor

isidorn commented Oct 27, 2020

Thanks a lot

@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants
@bpasero @isidorn @KyleRAnderson and others