Debug line by line

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 9 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
jrremillard
Posts: 58
Last visit: Sun Aug 08, 2021 7:42 am

Debug line by line

Post by jrremillard »

Hi

I was wondering if there was a way to see the line in the PowerShell script that is being executed during a debug process? I probably need to enable a setting but not sure which one or where.

thank you
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Debug line by line

Post by davidc »

When you are debugging (F5) there is a yellow arrow indicating what line you are on:
Debug Indicator.png
Debug Indicator.png (3.02 KiB) Viewed 2655 times
David
David
SAPIEN Technologies, Inc.
User avatar
jrremillard
Posts: 58
Last visit: Sun Aug 08, 2021 7:42 am

Re: Debug line by line

Post by jrremillard »

Thanks for the response but I am not getting that. I have a 37 line script and if I hit f5 I get a red lined box around the script and errors that show up in the output window.
User avatar
Ferdinand Rios
Posts: 373
Last visit: Fri Sep 16, 2022 1:24 pm

Re: Debug line by line

Post by Ferdinand Rios »

Be sure to set a breakpoint in your code. Then you can step through it one line at a time.
F.G. Rios
This topic is 9 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.