Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
For the life of me, I cannot figure this thing out. I understand how you attach it to a program, by pressing Debug in the IDE rather than Run... but beyond that I'm lost.
 

bkap16

macrumors member
Jan 11, 2009
81
0
You need to set breakpoints in the code to pause the debugger. Double click in the gutter on the left side of the line you want to debug (the same part that shows the little icons for TODO comments, errors, and warnings) to create the debug point, double-click again to remove it. When you debug the program, it will automatically stop at those lines. You can then chose either to continue (keep going until the next debug point), step over (go to the next line in the code), or step in (step into the method currently being called and see what's going on in there as well)
 

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
You need to set breakpoints in the code to pause the debugger. Double click in the gutter on the left side of the line you want to debug (the same part that shows the little icons for TODO comments, errors, and warnings) to create the debug point, double-click again to remove it. When you debug the program, it will automatically stop at those lines. You can then chose either to continue (keep going until the next debug point), step over (go to the next line in the code), or step in (step into the method currently being called and see what's going on in there as well)
Ah, thanks! That makes sense now. I was getting lost at how to set breakpoints.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.