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

Intermittent stepping behavior while debugging #7764

Open
HitalloExiled opened this issue Nov 9, 2024 · 3 comments
Open

Intermittent stepping behavior while debugging #7764

HitalloExiled opened this issue Nov 9, 2024 · 3 comments

Comments

@HitalloExiled
Copy link

Issue Description

Sometime when stepping some code, the debugger is just released like if F5 (Run/Continue) key was pressed.

Initially, my suspicion was a keyboard problem, but this occurs on two different machines.

Steps to Reproduce

It's an intermittent problem.
I am unable to reproduce the issue intentionally.

Expected Behavior

When pressing F10 (Step Over) it behaves like a step over.
When pressing F11 (Step Into) it behaves like step into.

Actual Behavior

Sometimes F10 or F11 triggers Continue.

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.95.2
C# Extension: 2.50.27
Using OmniSharp: true

Dotnet Information .NET SDK: Version: 9.0.100-rc.2.24474.11 Commit: 315e1305db Workload version: 9.0.100-manifests.82e6a096 MSBuild version: 17.12.0-preview-24473-03+fea15fbd1

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-rc.2.24474.11\

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.0-rc.2.24473.5
Architecture: x64
Commit: 990ebf52fc

.NET SDKs installed:
7.0.402 [C:\Program Files\dotnet\sdk]
8.0.301 [C:\Program Files\dotnet\sdk]
8.0.401 [C:\Program Files\dotnet\sdk]
9.0.100-rc.1.24452.12 [C:\Program Files\dotnet\sdk]
9.0.100-rc.2.24474.11 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0-rc.1.24452.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0-rc.2.24474.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0-rc.1.24431.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0-rc.2.24473.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0-rc.1.24452.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0-rc.2.24474.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
alignment annsk 0.3.0 annsk.alignment-0.3.0
Bookmarks alefragnani 13.5.0 alefragnani.bookmarks-13.5.0
calculate acarreiro 2.1.0 acarreiro.calculate-2.1.0
change-case wmaurer 1.0.0 wmaurer.change-case-1.0.0
character-position kyrcha 1.0.0 kyrcha.character-position-1.0.0
code-spell-checker streetsidesoftware 3.0.1 streetsidesoftware.code-spell-checker-3.0.1
codetour vsls-contrib 0.0.59 vsls-contrib.codetour-0.0.59
csharp ms-dotnettools 2.50.27 ms-dotnettools.csharp-2.50.27-win32-x64
csharpextensions kreativ-software 1.7.3 kreativ-software.csharpextensions-1.7.3
docomment k--kato 1.0.0 k--kato.docomment-1.0.0
EditorConfig EditorConfig 0.16.4 editorconfig.editorconfig-0.16.4
emoji Perkovec 1.0.1 perkovec.emoji-1.0.1
exclude-it YoRolling 1.2.5 yorolling.exclude-it-1.2.5
explorer-exclude PeterSchmalfeldt 1.3.2 peterschmalfeldt.explorer-exclude-1.3.2
fluent-icons miguelsolorio 0.0.19 miguelsolorio.fluent-icons-0.0.19
font-preview ctcuff 2.2.1 ctcuff.font-preview-2.2.1
glsl-language-support filippofracascia 0.0.4 filippofracascia.glsl-language-support-0.0.4
hexeditor ms-vscode 1.11.1 ms-vscode.hexeditor-1.11.1
incrementor nmsmith89 1.0.3 nmsmith89.incrementor-1.0.3
jupyter ms-toolsai 2024.10.0 ms-toolsai.jupyter-2024.10.0-win32-x64
live-server ms-vscode 0.4.15 ms-vscode.live-server-0.4.15
markdown-checkbox bierner 0.4.0 bierner.markdown-checkbox-0.4.0
markdown-mermaid bierner 1.26.0 bierner.markdown-mermaid-1.26.0
material-product-icons PKief 1.7.1 pkief.material-product-icons-1.7.1
mermaid-markdown-syntax-highlighting bpruitt-goddard 1.7.0 bpruitt-goddard.mermaid-markdown-syntax-highlighting-1.7.0
open-in-browser techer 2.0.0 techer.open-in-browser-2.0.0
path-intellisense christian-kohler 2.9.0 christian-kohler.path-intellisense-2.9.0
powershell ms-vscode 2024.4.0 ms-vscode.powershell-2024.4.0
project-manager alefragnani 12.8.0 alefragnani.project-manager-12.8.0
quicktype quicktype 23.0.170 quicktype.quicktype-23.0.170
remote-containers ms-vscode-remote 0.388.0 ms-vscode-remote.remote-containers-0.388.0
remote-wsl ms-vscode-remote 0.88.5 ms-vscode-remote.remote-wsl-0.88.5
remove-comments plibither8 1.2.2 plibither8.remove-comments-1.2.2
remove-empty-lines usernamehw 1.0.1 usernamehw.remove-empty-lines-1.0.1
simple-alignment earshinov 1.0.1 earshinov.simple-alignment-1.0.1
sort-lines-by-selection earshinov 1.2.0 earshinov.sort-lines-by-selection-1.2.0
test-adapter-converter ms-vscode 0.2.1 ms-vscode.test-adapter-converter-0.2.1
toggle-hidden adrianwilczynski 1.0.2 adrianwilczynski.toggle-hidden-1.0.2
vscode-dotnet-runtime ms-dotnettools 2.2.2 ms-dotnettools.vscode-dotnet-runtime-2.2.2
vscode-gitextensions pmiossec 1.4.0 pmiossec.vscode-gitextensions-1.4.0
vscode-glsl GeForceLegend 0.3.2 geforcelegend.vscode-glsl-0.3.2
vscode-icons vscode-icons-team 12.9.0 vscode-icons-team.vscode-icons-12.9.0
vscode-markdownlint DavidAnson 0.56.0 davidanson.vscode-markdownlint-0.56.0
vscode-sort-json richie5um2 1.20.0 richie5um2.vscode-sort-json-1.20.0
vscode-spvasm penguinliong 0.0.1 penguinliong.vscode-spvasm-0.0.1
vscode-taskexplorer spmeesseman 2.13.2 spmeesseman.vscode-taskexplorer-2.13.2
vscode-versionlens pflannery 1.14.2 pflannery.vscode-versionlens-1.14.2
vscode-yaml redhat 1.15.0 redhat.vscode-yaml-1.15.0
vsliveshare ms-vsliveshare 1.0.5941 ms-vsliveshare.vsliveshare-1.0.5941
xml DotJoshJohnson 2.5.1 dotjoshjohnson.xml-2.5.1
@gregg-miskelly
Copy link
Contributor

What version of .NET is your project running under?

@HitalloExiled
Copy link
Author

HitalloExiled commented Nov 13, 2024

What version of .NET is your project running under?

Version net9.0
I've been using this version since the first previews. I started noticing this problem in the last two months.

I noticed that the problem also occurs when using the UI buttons.

@gregg-miskelly
Copy link
Contributor

gregg-miskelly commented Nov 13, 2024

This is a problem with .NET 9. The .NET team hasn't been able to figure it out yet -- when they try to add tracing the problem goes away. But I opened a public issue about it:

dotnet/runtime#109785

The only work around I am aware of is that if your project is something that can also target .NET 8 (or earlier) you could debug that configuration instead.

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