Reputation: 4032
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
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