ksm001
ksm001

Reputation: 4032

Visual Studio 2010: Is there any function that can create break points at all lines in a .cpp file?

When my friend writes some code I usually don't understand all of it unless I insert break points everywhere and start running the code line by line.

He just send me a .cpp file that has 500 lines in it, which means that I need to click 500 times in order to specify a breakpoint at each line.

Is there any function in the Visual Studio 2010 that can do this job for me?

thanks in advance

Upvotes: 1

Views: 222

Answers (1)

Jesus Ramos
Jesus Ramos

Reputation: 23266

You can always set 1 breakpoint at the first line of main() and simply use the Step Through option to go through each line or Step Into if it's a function call.

Upvotes: 1

Related Questions