Breakpoint not being hit when attaching to debugger
See original GitHub issueSystem Details
Windows10
System Details Output
Issue Description
I am experiencing a problem as the breakpoints are not getting hit when attaching debugger to different pwsh window.
Expected Behaviour
–It should stop at breakpoint
Actual Behaviour
– It just executed without halting
Attached Logs
vscode-powershell.log StartEditorServices.log EditorServices.log
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
breakpoint will not currently be hit, why not? - Stack Overflow
Stop debugging (press red square icon) in Visual Studio · Clean Solution · Build Solution · Tools > Attach to Process (or start...
Read more >Not hitting breakpoints when attaching to process with debugger
Hi,. Firstly, please make sure the debug attribute is true in web.config file. If the debugger doesn't load the .pdb file, ...
Read more >Debug -> Attached to Process not hitting break points for ...
I refresh the web page (in Chrome) and no new dotnet.exe processes start, and I remain attached to the process but still no...
Read more >Solving error "the breakpoint will not currently be hit" in Visual ...
Go to Debug from the menu bar · Click on Attach to Process · Near the Attach to option, click on the Select...
Read more >If breakpoints are not hit when debugging | GE Digital
Breakpoints should be used and hit when debugging. If your breakpoints are not hit during a debugging session, follow the information below to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I experience the same problem and can agree with the above descriptions.
Yep, confirming the same symptoms as Leo above. Probably unrelated, but just in case it isn’t, I’m using Conda environments.
For what it’s worth, I’m doing the bits below in a condition where VS Code PS Extension is no longer able to attach to another host process (it times out). Using PS 7.1.3:
As such, it seems like the issue is not just VS Code or the PS extension in VS Code, Something is happening that is making the debugging engine for PS ‘non-responsive’ to breakpoints, or else it isn’t attaching properly (despite appearing to report that it is).
Or, I’m missing something else…