question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not launching debugger

See original GitHub issue

Hi all-

I’m having an issue wherein when I try to debug a test, it just sits there with the waiting animation next to the test name. The debugger doesn’t launch. Here’s the output in the “Test Explorer” output window:

Test run for Esi.Core.Tests.ToyUnitTest.ReadSchemaTest, expecting 1 test results file(s) in total
Executing dotnet build in c:/code/esi/src/core
Executing dotnet test --no-build --logger "trx;LogFileName=C:\Users\jodemme\AppData\Local\Temp\test-explorer-g26BGW\0.trx" --filter "FullyQualifiedName=Esi.Core.Tests.ToyUnitTest.ReadSchemaTest" in c:/code/esi/src/core
Process 32220 started
Waiting for debugger to attach
Waiting for debugger to attach
Waiting for debugger to attach
Waiting for debugger to attach
Waiting for debugger to attach
Waiting for debugger to attach
Waiting for debugger to attach
Waiting for debugger to attach

This is an nunit test which runs fine with ‘dotnet test’ at the console. It is in an sln which is not at the root directory. It is targetting dotnetcore3.1 and the csproj has the following references:

    <PackageReference Include="nunit" Version="3.12.0" />
    <PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0"/>

I’m running VSCode version:

Version: 1.42.1 (system setup)
Commit: c47d83b293181d9be64f27ff093689e8e7aed054
Date: 2020-02-11T14:45:59.656Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.19041

I think this worked on a difference C# project… Am I doing something wrong? Or is this a bug?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:20

github_iconTop GitHub Comments

1reaction
lonix1commented, Jul 3, 2021

Same here, and I can’t repro the problem. Works from the codelens, but not from the panel.

1reaction
stefanforsbergcommented, Jun 10, 2020

@JohnGalt1717 Ah, thank your for bringing that discussion to my attention. I’ll add a seperate issue for that so we have a more natural place to keep track of it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger.Launch not working - Stack Overflow
Go to Tools --> Options --> Debugging · Open the item and select just in time debugger · If you see in the...
Read more >
Debugger.Launch() does not work neither in a simple console ...
I had a simple C# 9 source code generator project based on .NET 5 preview on VS 16.8 preview 4. I had used...
Read more >
Error: Unable to Start Debugging on the Web Server
When you try to debug an ASP.NET application running on a Web server, you may get this error message: Unable to start debugging...
Read more >
Debugger not starting my process · Issue #4713 - GitHub
I'm working on a C89 project, I've been using VS Code for a few months and real time debugging used to work pretty...
Read more >
Debugger wont launch - ST Community
Debugger wont launch. I've been using the STM32CubeIDE on a Ubuntu system to develop code for our STM32 based device. Up until today...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found