Breakpoint question

Is there a way for me to set a breakpoint where, after entering a method, all method calls are logged to the console until the method exit (or between two breakpoints all method calls are logged to the console).

For example,
public void doIt()
{
a.doA()
b.doB()
c.doC()
}

would log something like
entering doIt()
a.doA()
b.doB() c.doC() ]]>
exiting doIt()

Basically, a rudimentary sequence diagram (ideally indented to make it easy to follow). I suppose something like this could be done with Aspects and logging, but I'm hoping it's possible via the debugger (since all the info needed is right there).

Thx
andy

0

Please sign in to leave a comment.