In a earlier project that i had worked, i used remote debugging, that work just fine, until the network policies were changes, and then it was extremely painful to make some kind of debugging, and i then i make use of the old fashion debug of using Response.Writeln(value to debug) or Debug.WriteLine(value to debug).
Today i found a hidden feature of the VS debugger, call "When Hit...". That feature gives the possibility to use breakpoints has run time markers to extract values.
After you select the breakpoint with right mouse click, a window appears so you can configure the behaviour of your breakpoint.
In the textbox Print a message we write the syntax of what we want the debugger to tell us, when he passes on that breakpoint. As an example on the output window will appear this messages if we configure the breakpoint as the window above.
Function: Some_Event(object, System.EventArgs), Timestamp: "18:15:54"
(...)
This feature also allows the execution of a macro, witch provides other process to be trigged by our breakpoint.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.