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: Breakpoints cannot be set when the target app is in a tight loop #901

Closed
v-zhanme opened this issue Nov 9, 2016 · 7 comments
Closed

Comments

@v-zhanme
Copy link

v-zhanme commented Nov 9, 2016

Environment data

dotnet --info output:
VS Code version: 1.7.1
C# Extension version: v.1.5.0-beta7
.NET Core version: 1.0.0-SDK Preview4
C# Extension version:

Steps to reproduce

Launch the project in Command Prompt(cmd window) using the Command 'dotnet run'.
2.Open the attachment project with VSCode.
myapp.zip

3.change the debugger status is .NET Core Launch(console)
4.Press F5 to start debugging
5.set a BP at line 17

Expected behavior

The cursor will hit line 17

Actual behavior

Can not hit BP at line 17
screen shot 2016-11-09 at 6 56 56 pm

@gregg-miskelly
Copy link
Contributor

@v-zhanme Your code has an infinite loop, so line 17 will never execute. Is there something I am missing?

@v-zhanme
Copy link
Author

I'm sorry for typo, The BP should be on line 9

@gregg-miskelly
Copy link
Contributor

@v-zhanme Thanks. What OS were you on?

@v-zhanme
Copy link
Author

This issue repro on Mac and Fedora. And not repro on windows OS.
I send e-mail to you about this question at last an hour.

@gregg-miskelly
Copy link
Contributor

This issue only repos if the app is in a tight loop. @mikem8361 would it make sense to have a bug in the CoreCLR repo about breaking into apps on Unix when the app is in a tight loop? Or is that just a really hard problem and I should resolve this as 'by design'.

@gregg-miskelly gregg-miskelly changed the title Debugger: It can't hit BP while running mode Debugger: Breakpoints cannot be set when the target app is in a tight loop Nov 11, 2016
@mikem8361
Copy link
Member

It is similar to https://github.com/dotnet/coreclr/issues/4623 which is about aborting funcevals that are caught in a tight loop. The reason and the solution for both problems would be the same. This is a fairly large work item.

@gregg-miskelly
Copy link
Contributor

Resolving this as external.

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

3 participants