![]() ![]() (If you click this while in your main method, it runs the rest of your entire program.) Step Out: Executes all remaining lines of the method you are currently in, and returns to the place from which it was called.If the current line is a method call, jumps inside that method and pauses at its first line of code. If the current line is a method call, runs that entire method call. From left to right, their behavior is the following: These buttons control the execution of the debugger. Notice that near the top-left corner of jGRASP, there is a new set of buttons. The next line to execute will be highlighted. The program will run until it hits the line of your breakpoint. Once you have set the breakpoint, compile your program (if you haven't already) and then press the ladybug icon to run it in debugging mode. (One good place to set a breakpoint is on the first line inside your main method, so that you can step through the entire program's execution.) To set a breakpoint, move your mouse cursor to the left margin of your file's editor window until the cursor becomes a stop sign, and press the left mouse button. To use it, first you must tell jGRASP where to pause the execution this is called a breakpoint. From there, you can run each line one at a time and see the results. ![]() The debugger lets you run your program partially and then stop it. jGRASP interactions pane tutorial video by the jGRASP authors.JGRASP debugger tutorial video by the jGRASP authors ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |