Product, version and build: 7.2.96.0
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 Enterprise
32 or 64 bit OS: 64-bit
Hi,
I need to step through my PowerShell script to observe the execution path that is taken. I'm choosing Debug Elevated from the Debug Group. After doing this, it executes the entire script without stepping. Is this expected behavior when coding in PowerShell? I know this works with vbscript.
Thanks,
Rob
Cannot step through PowerShell script in debug
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Cannot step through PowerShell script in debug
Did you set a breakpoint?
VBScript stops at the first instruction if there is no breakpoint.
Powershell does not do that. You need to set a breakpoint yourself.
VBScript stops at the first instruction if there is no breakpoint.
Powershell does not do that. You need to set a breakpoint yourself.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Cannot step through PowerShell script in debug
Ok, that makes sense. It's working following your advice.
Carnac the Magnificent is amazing!
Carnac the Magnificent is amazing!