Closed mattcargile closed 3 months ago
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
The Debug Prompt isn't consistently firing. I think we should use
$Host.Runspace.Debugger.InBreakpoint
instead of$PSDebugContext
andGet-PSCallStack
. Or if we could just add it in as-or
logic?https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/src/shell/scripts/omp.ps1#L362
Here is a repo of it not working based on the code above.
If you change the logic to
if ( $Host.Runspace.Debugger.InBreakpoint )
it works.Reference
https://github.com/PowerShell/vscode-powershell/issues/3980
Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output