Java Reference
In-Depth Information
Figure 4-8
You may fi nd that the function you stepped into is not the source of the bug and want to execute the
remaining lines of code in the function to continue step by step from the point at which the function was
called. Do so by clicking the Step Out icon to step out of the code. However, if you're in a loop and the
breakpoint is set inside the loop, you will not step out of the function until you iterate through the loop.
There may also be times when you have some code with a bug in it that calls a number of functions. If
you know that some of the functions are bug-free, then you may want to just execute those functions
instead of stepping into them and seeing them executed line by line. Use Step Over in these situations
to execute the code within a function but without going through it line by line.
Alter your times-table code in debug_timestable.htm as follows so you can use it for the three kinds
of stepping:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>Av
<title>Debug: Times Table 2</title>
<script type=”text/javascript”>
Search WWH ::




Custom Search