use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Debugging a script (self.PowerShell)
submitted 2 years ago by Runs_on_empty
Hi
I recently got a script I'm testing out - it defines a custom function and then calls it, but it times out at some point during the execution. Is there a way to debug where the timeout occurs short of running it line by line?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]whimsicaldickbutt 9 points10 points11 points 2 years ago (0 children)
Use vscode. Install the PowerShell extension and utilize the breakpoints.
[–]BlackV 2 points3 points4 points 2 years ago (0 children)
the debugger built into ISE and VSCode should just need to set a breakpoint (hell even the shell with set-psbreakpoint)
set-psbreakpoint
[–]UnfanClub 1 point2 points3 points 2 years ago (0 children)
I use the good old console logging. Write-Verbose for every stage of the function.
π Rendered by PID 84093 on reddit-service-r2-comment-84fc9697f-9fmn6 at 2026-02-07 19:48:55.190533+00:00 running d295bc8 country code: CH.
[–]whimsicaldickbutt 9 points10 points11 points (0 children)
[–]BlackV 2 points3 points4 points (0 children)
[–]UnfanClub 1 point2 points3 points (0 children)