yes I wanted something like this, so I implemented a pretty simple solution from my C days. This may be useful if you want a lightweight answer.
public class DebugHelper
{
public static breakHere()
{
int i = 0; // Set breakpoint on this line in your IDE
}
}
To use this method. Put a breakpoint in your code on the “int i = 0;” line. And call that method in the code you are debugging. It is a quick answer to getting some dynamic debugging and faster than a watch on a variable.
Example …
private something(...)
{
for( ... )
{
if( null == value ) DebugHelper.breakHere();
}
}
Of course in C, you can put the right ASM breakpoint instruction 😉 This works fine for me on the rare occasions I want something like this.