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

Debugger will show threads as 'Paused' when they are running #1317

Closed
GraceDong opened this issue Mar 13, 2017 · 5 comments
Closed

Debugger will show threads as 'Paused' when they are running #1317

GraceDong opened this issue Mar 13, 2017 · 5 comments
Assignees
Milestone

Comments

@GraceDong
Copy link

Environment data

dotnet --info output:

  • Version: 1.0.1
  • OS Name: Ubuntu
  • OS Version: 16.04
  • RID: Ubuntu.16.04-x64

VS Code version: 1.10.2
C# Extension version: v1.8.0

Steps to reproduce

  1. Create an app:
  • dotnet new mvc -o webtest
  • cd webtest
  • dotnet restore && dotnet build
  1. Set a breakpoint at the line which contains text ‘ ViewData["Title"]="Home Page"; ’ in Index.cshtml.
  2. Press F5 to start debugging
  3. Press Continue

Expected behavior

The call stack frame seems like incorrectly.

Actual behavior

When the breakpoint is hit, the call stack window as following:
hitbp
After press Continue, the call stack window as following:
continue
After about 30 seconds, the call stack window as following:
wait
Is this expect? Could you please help me confirm it?

@gregg-miskelly
Copy link
Contributor

@GraceDong to make sure I understand, the part you are asking about is that a bunch of threads are listed as 'Paused on breakpoint' when in fact they are NOT paused on a breakpoint. Is that correct?

@GraceDong
Copy link
Author

Yes, and after 30 seconds, 1 paused thread and 2 running threads has exit, is this expect?

@gregg-miskelly
Copy link
Contributor

@GraceDong the fact that a thread is listed as 'paused' is a bug. It is somewhat of a VS Code bug, but I will fix it on our side.

The fact that threads go away is just how the ASP.NET runtime works. Its expected.

@gregg-miskelly gregg-miskelly changed the title Debugger: The call stack frame seems like incorrectly in web application Debugger will show threads as 'Paused' when they are running Mar 14, 2017
@gregg-miskelly gregg-miskelly added this to the 1.9 milestone Mar 14, 2017
@gregg-miskelly
Copy link
Contributor

I checked in a fix for this for 1.9

@gregg-miskelly
Copy link
Contributor

I have posted a new release of the C# extension that includes the fix.

To try it -- use the use the Installing Beta Releases instructions to install v1.9.0-beta2.

@gregg-miskelly gregg-miskelly modified the milestones: 1.8.1, 1.9 Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants