PowerShell Studio: Dynamic Breakpoint: "On Data sent to Console|Pipeline|..."

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 6 years and 9 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.
Locked
User avatar
Jehoschua
Posts: 64
Last visit: Fri Mar 01, 2024 3:24 am

PowerShell Studio: Dynamic Breakpoint: "On Data sent to Console|Pipeline|..."

Post by Jehoschua »

Good afternoon

We often have the question:
which Source-Line is responsible for a message which appears on the Console?

There are many Write-Host commands in the Code and some Console-Outputs just has a "Iteation: $x" command (without Write-Host), therefore they are really hard to find.


Therefore, it would be an unique and useful feature, if you could offer a dynamic breakpoint which breaks the Code-Execution as soon as something is written to the console.
Or maybe an advanced user-defined breakpoint setting like: "Break if the Text "xxx" is written to the Console".


As I though about this kind of breakpoint, I thought that if could be useful if PowerShell Studio could break if a pattern appears on the Pipeline, too. Maybe, it's a cool idea - maybe not ... :-)

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

Re: PowerShell Studio: Dynamic Breakpoint: "On Data sent to Console|Pipeline|..."

Post by davidc »

Thank you for your feedback. You can use a function breakpoint to instruct the debugger to break when a particular function / cmdlet is called.
Function Breakpoint.png
Function Breakpoint.png (123.87 KiB) Viewed 2278 times
David
SAPIEN Technologies, Inc.
This topic is 6 years and 9 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.
Locked