|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Block Step Into Debugging for a functionIs it possible to block the debugger to Step Into a function ( in VS 2005 or VS2003 ) - Even If I press F11 (the Step Into Key)? //////////////////////////////////////////////////////////////////////////// ////////////////// Example (plz read comment ) void Main() { Foo1(); // Pressing F11 should not take the control into the definition of Foo2 Foo2(); // Debugger should work normally on this } // Control should not come here when Stepped Into this function void Foo1() { } // Debugger should work normally on this void Foo2() { } //////////////////////////////////////////////////////////////////////////// ////////////////// Its like hiding a particular function from the debugger - in above example Foo2. Practical Implementation Need will be the .Instance method of a singleton class - which no one wants to look at while debugging. Am I asking for too much :-) Thank You, rawCoder See System.Diagnostics.DebuggerHiddenAttribute and/or
System.Diagnostics.DebuggerStepThroughAttribute Simon ,
That Works Great, For those of you who want to know the difference between the two. System.Diagnostics.DebuggerStepThroughAttribute (Breakpoints are allowed in the method) System.Diagnostics.DebuggerHiddenAttribute (Breakpoints are not allowed in the method) Thanx. Show quoteHide quote "Simon Dahlbacka" <simon.dahlba***@gmail.com> wrote in message news:1141735600.108041.165620@i39g2000cwa.googlegroups.com... > See System.Diagnostics.DebuggerHiddenAttribute and/or > System.Diagnostics.DebuggerStepThroughAttribute > |
|||||||||||||||||||||||