Cannot Debug Pester Tests
See original GitHub issueIssue 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
Item | Value |
---|---|
CPUs | Intel® Core™ i7-8665U CPU @ 1.90GHz (8 x 2112) |
GPU Status | 2d_canvas: enabled 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 |
Load (avg) | undefined |
Memory (System) | 15.34GB (7.61GB free) |
Process Argv | –crash-reporter-id 4eac389b-80c0-4b6e-a084-accb1ae224fc |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30256638
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
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 https://github.com/PowerShell/PowerShellEditorServices/issues/1295
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!