Does PowerShell Studio support debugging inside classes?

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
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.
This topic is 7 years and 1 month 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
AntonKrouglov
Posts: 3
Last visit: Thu Feb 09, 2017 5:57 am

Does PowerShell Studio support debugging inside classes?

Post by AntonKrouglov »

PowerShell Studio 2017 v5.4.135, 64 bit version, trial
Operating system: Windows 10.0.14393 x 64 bit
PSVersion 5.1.14393.693

Attached file tmp.ps1 does run successfully. However I cannot debug into class constructor. It shows error:

>> Debugging (tmp.ps1) Script...
>> Platform: V5 64Bit (STA)
tmp.ps1 (48): Cannot bind argument to parameter 'Path' because it is null.>> Script Ended

Debugging in PowerShell ISE and PowerGUI works flawlessly.

Does your product support this kind of debugging?
Attachments
tmp.ps1
(1.26 KiB) Downloaded 132 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Does PowerShell Studio support debugging inside classes?

Post by Alexander Riedel »

If it runs you should be able to debug it. Where did you set a breakpoint?
I will try to replicate this.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
AntonKrouglov
Posts: 3
Last visit: Thu Feb 09, 2017 5:57 am

Re: Does PowerShell Studio support debugging inside classes?

Post by AntonKrouglov »

Break point was set at line 18
See attached video
Attachments
error_mp4.txt
rename to error.mp4
(300.54 KiB) Downloaded 124 times
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: Does PowerShell Studio support debugging inside classes?

Post by DevinL »

I've managed to reproduce this on my end and have filed an internal bug report.

Thank you for bringing this to our attention. When we have some news to share, we'll be sure to post it here.
DevinL
SAPIEN Technologies, Inc.
This topic is 7 years and 1 month 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.