Product, version and build: PowerShell Studio 2022
Operating system: Windows 11
PowerShell version(s): v7 - 64 bit
32-bit version of software? 64-bit
I have created a new PowerShell script that needs to be triggered after clicking a button, but when I set a breakpoint in my new PowerShell script and run F5 (debug) the Project is being build, all the functions etc are loaded and UI (GUI) is started but when I hit the button that should trigger my new function in the script I created the breakpoint does not seem to be reached.
How can I test my GUI app with the new script (function) I developed in debug mode?
Regards,
Stefan Stranger
Debugging in PowerShell Studio 2022
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
-
- Posts: 2
- Last visit: Fri Sep 02, 2022 4:58 am
Re: Debugging in PowerShell Studio 2022
Depending on where you put your breakpoints, it sounds like the script is never hitting your breakpoints. Can you provide a screenshot of your script where you have your breakpoint when running in debug?
Are you using PowerShell 7?
Are you using PowerShell 7?
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 2
- Last visit: Fri Sep 02, 2022 4:58 am
Re: Debugging in PowerShell Studio 2022
Hi Brittney,
Thanks for your response. I'm using PowerShell 7. Would it be possible to share a screenshot directly with you because it contains some information that I would rather keep a bit confidential.
Regards,
Stefan
Thanks for your response. I'm using PowerShell 7. Would it be possible to share a screenshot directly with you because it contains some information that I would rather keep a bit confidential.
Regards,
Stefan
Re: Debugging in PowerShell Studio 2022
What version of PowerShell 7 are you using?
You can upload your screenshot here:
https://www.sapien.com/support/upload
You can upload your screenshot here:
https://www.sapien.com/support/upload
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Debugging in PowerShell Studio 2022
If you are using PowerShell 7.2.6, this may have been the issue. The latest build of PowerShell Studio (5.8.210) added support for this. I recommend updating and seeing if you are still encountering this issue.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.