user2527386
user2527386

Reputation: 11

Check the flow of execution of a c# program

I have downloaded a C# project from the internet and I want to make some changes to it so that it suits my requirement. However, I cannot figure out how the program actually works. To be precise, I would like to know the starting point of the application and want to execute it step by step till it finishes execution. I'm new to the .Net environment. Previously, I used f7 key on Turbo C++ to do the same. I'm using Visual Studio 2012

Upvotes: 1

Views: 4012

Answers (4)

Marshall777
Marshall777

Reputation: 1204

You can find the entry point in the properties of the project.

Upvotes: 0

Thorsten Dittmar
Thorsten Dittmar

Reputation: 56697

Look for the void Main() function, set a breakpoint there and then use F10 and F11 to debug your way through it.

Upvotes: 0

mihai
mihai

Reputation: 2804

When you have opened the solution in Visual Studio Press F10 to start Debugging. That will redirect you to the starting point in your project.

Upvotes: 3

Tigran
Tigran

Reputation: 62246

Start program and hit pause, so it will pause in starting point, in the "cycle" of program, if this is an executable.

Upvotes: 0

Related Questions