If you don't mind taking your hand of the keyboard: - Right-click "SomeMethod" - Click "Go to definition" - Right-click and select "Run to cursor"
-- Ernst Kuschke MVP - C# (South Africa) http://dotnet.org.za/ernst On 10/18/06, Mike Woodring <[EMAIL PROTECTED]> wrote:
> > You know what they should have build in instead of > E&C? Step into method. So that when you're on a statement like: > > > SomeMethod(foo.Property1, foo.Property2); > > This is already in the debugger Frans ... double click on the method > name so it highlights the method then either right click it and say > step into or I believe the hot key (f11 by default) will also work ... > its one of those neat features noone knows about :) No it's not. In the above code, F11/step-into will step into the getter for Property1, then the getter for Property2, then *then* SomeMethod. That's what Frans is talking about. He wants a way to just step over Property1 & Property2 and right into SomeMethod. The only way to achieve that as far as I know is the DebuggerStepThrough attribute Paul mentioned. If DebuggerStepThrough hasn't been applied to the getters of both properties, then the closest you can come (assuming the instruction pointer is on that line of code) is: F11 Step into Property1 getter. Shift+F11 Run until Property1 getter returns. F11 Step into Property2 getter. Shift+F11 Run until Property2 getter returns. F11 Step into SomeMethod. Frans wants a hotkey/button that skips the 1st 4 steps. -Mike Bear Canyon Consulting LLC http://www.bearcanyon.com http://www.pluralsight.com/mike =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com