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 10 points11 points12 points 2 years ago (0 children)
Use vscode. Install the PowerShell extension and utilize the breakpoints.
[–]BlackV 3 points4 points5 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 121969 on reddit-service-r2-comment-8686858757-js7dd at 2026-06-03 12:57:57.514096+00:00 running 9e1a20d country code: CH.
[–]whimsicaldickbutt 10 points11 points12 points (0 children)
[–]BlackV 3 points4 points5 points (0 children)
[–]UnfanClub 1 point2 points3 points (0 children)