Debugger stepping into referenced class first and bypassing parent
-
When I used to execute my code, I used to be able to step into the following line of code in my PC class, and it went to my GetProgramControl method, where I could step some more.
controls[i] = (Control)_type.InvokeMember("GetProgramControl", BindingFlags.Default | BindingFlags.InvokeMethod, null, _objectInstance, _parameters);
For some reason, I was stepping into that at one point, and it was having trouble finding my SN.cs and I hit the link to browse to show it where it was. Ever since then, every time I step into the line above, it goes directly to the later reference of my SN class and the debugger is in a method there. Any ideas how I can get the debugger to stop in the PC class GetProgramControl method? I can't put a breakpoint there because it's outside of my class that is calling it. I looked at the following but it's different since my SN class isn't a child of PC, it's a reference used in it. http://bytes.com/topic/c-sharp/answers/439984-cant-step-into[^] I also saw this and it might be similar but it doesn't look like anyone had a solution for him: http://www.codeproject.com/Messages/2932838/Can-t-step-into-method-debug-with-F11-in-Visual-St.aspx[^]
-
When I used to execute my code, I used to be able to step into the following line of code in my PC class, and it went to my GetProgramControl method, where I could step some more.
controls[i] = (Control)_type.InvokeMember("GetProgramControl", BindingFlags.Default | BindingFlags.InvokeMethod, null, _objectInstance, _parameters);
For some reason, I was stepping into that at one point, and it was having trouble finding my SN.cs and I hit the link to browse to show it where it was. Ever since then, every time I step into the line above, it goes directly to the later reference of my SN class and the debugger is in a method there. Any ideas how I can get the debugger to stop in the PC class GetProgramControl method? I can't put a breakpoint there because it's outside of my class that is calling it. I looked at the following but it's different since my SN class isn't a child of PC, it's a reference used in it. http://bytes.com/topic/c-sharp/answers/439984-cant-step-into[^] I also saw this and it might be similar but it doesn't look like anyone had a solution for him: http://www.codeproject.com/Messages/2932838/Can-t-step-into-method-debug-with-F11-in-Visual-St.aspx[^]