Saikiran
Saikiran

Reputation: 67

How to debug or/and trace the execution flow in C# with event handlers in it?

I'm having a problem in tracing the execution flow in my c# code.With f10 or f11 i am able to trace just till the end of the main method.But in the runtime when an event is generated the function being executed is not traced. But I want to trace the code that is getting executed after the event is generated?

Thanks.

Upvotes: 1

Views: 851

Answers (1)

zey
zey

Reputation: 6105

You can make a breakpoint on the left side of your code like enter image description here

and run your project by hitting (F5) .
And you can trace your code using F10(Step Over) and F11(Step Into) !
For more information , use this msdn link !

Upvotes: 2

Related Questions