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

After Update Unable to debug unit tests #1683

Closed
alkampfergit opened this issue Dec 12, 2024 · 5 comments
Closed

After Update Unable to debug unit tests #1683

alkampfergit opened this issue Dec 12, 2024 · 5 comments
Assignees
Labels
area-test Test discovery, execution, debugging bug Something isn't working

Comments

@alkampfergit
Copy link

Type: Bug

Suddenly, after an update, test runner is somewhat broken.

  1. if I choose debug no breakpoint is hitted.
  2. Right click on a method does not have corresponding meny entry to run the test
  3. All unit tests methods have in source code an Icon telling last result and tha can be used to launch the test, these are not present anymore.

Extension version: 1.14.14
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs AMD Ryzen 9 5900X 12-Core Processor (24 x 3700)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.92GB (9.04GB free)
Process Argv --crash-reporter-id 8eb0aa33-34b3-4b72-b2eb-903b8379162a
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@AbhitejJohn AbhitejJohn added bug Something isn't working area-test Test discovery, execution, debugging high-priority labels Dec 12, 2024
@AbhitejJohn
Copy link

@alkampfergit : Thanks for sharing, would you be able to tell us a little more about the kind of test project you are trying to debug so it is easier to repro it on our end. Alternatively, if you wouldn't mind sharing some diagnostic logs with us that would be fantastic as well. Here is how you can enable these diagnostic logs.

@ocallesp
Copy link
Member

ocallesp commented Dec 12, 2024

I was not able to repro with a C# MSTest Project.

@alkampfergit could you check if I am missing a step or could you provide repro project ?
Image

@ocallesp ocallesp self-assigned this Dec 19, 2024
@onionhammer
Copy link

Same

1 similar comment
@OptimusPi
Copy link

Same

@alkampfergit
Copy link
Author

Hi, actually the problem was due to a big test project with lots of tests that has some weirdness in the .csproj file. After cleaning up the .csproj file debugger started to work again. Actually the project contains a lot of section where files were excluded and then included again in the project (test project file was born 10 years ago).

I think that visual studio messed up with the file, after removing all the include/Exclude everything starts working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test Test discovery, execution, debugging bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants