-
Notifications
You must be signed in to change notification settings - Fork 491
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
Cannot Debug Pester Tests #3199
Comments
I've installed VSCODE 1.52.1 and it seems a little better. Also, at the very end, [HOSTNAME] script Listing.ps1 file is populated with : $global:__psEditorServices_CallStack = Get-PSCallStack; $global:__psEditorServices_CallStack instead of 0. |
here are the logs |
Thanks for providing the logs they are helpful, it looks like this is causing the issue:
In other words, it looks like the runspace is getting into a bad state, this will hopefully be resolved by the PowerShell/PowerShellEditorServices#1295 |
Hello, and thank you for your patience! The latest PowerShell Preview for VS Code is now out, and includes the reworking of our pipeline and threading architecture in PowerShell/PowerShellEditorServices#1295. Could you verify if this issue still reproduces using v2021.10.3-preview? Please note that this preview is likely to include other bugs, and you should feel free to file new issues for those so we can work through them. Thanks again! |
This issue was closed automatically as author feedback was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information! |
Issue Type: Bug
problem started after January 2021 update
currently using powershell 7.1.2 and pester 4.10.1.
Used to work with Powershell 2020.6.0 extension... I even tried with Powershell 2020.9.0 preview, with the same result.
When using "run tests", works OK.
When using "Debug tests" without BreakPoints, work like "run tests"
When using "Debug tests" with BreakPoints, Debug side window opens,
Then either nothing happens (last time I let it run for 20 minutes) Shift-F5 to Stop
Either tests runs without stopping on breakpoints and stalls after this output in terminal:
################################
WARNING: Breakpoint Command breakpoint on '' will not be hit
Hit Command breakpoint on ''
[DBG]: PS C:\WorkSpace\Scripts>
Hit Command breakpoint on ''
################################
As well as, ps1 file open
C:\Users\ username\AppData\Local\Temp\PSES-18484\ [HOSTNAME] Script Listing.ps1
with only "0" in its content.
Extension version: 2020.6.0
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.18363
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: