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.
Locked
User avatar
Jehoschua
Posts: 40
Joined: Fri Jan 29, 2016 6:23 am

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

Post by Jehoschua » Fri May 26, 2017 8:16 am

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: 5543
Joined: Thu Aug 18, 2011 4:56 am

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

Post by davidc » Tue May 30, 2017 11:21 am

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 735 times
David
SAPIEN Technologies, Inc.

Locked