Debugging PowerShell with and without VS Code
Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
In this video I explain how to debug PowerShell code using VS Code's native features and the native PowerShell debugger.
My demo file – https://github.com/johnthebrit/RandomStuff/blob/master/PowerShellStuff/DebugDemo.ps1
PowerShell 7 – https://github.com/PowerShell/PowerShell
VS Code – https://code.visualstudio.com/download
00:00 Introduction
03:38 Example project
06:00 Add breakpoints
07:05 Using the debugger
08:40 Get in and cross
13:55 Demo code walkthrough
16:30 Functional breakpoints
22:10 PSRetrieve Breakpoint
24:40 Breakpoints for expressions and hit counts
29:10 Call list
30:03 Create breakpoint from Powershell
31:00 Native PowerShell debugging
35:27 Mixing commands together
39:55 Summary and conclusion
Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.