Java Reference
In-Depth Information
Example 5.18 An actual jdb session, with commentary
$ jdb
Initializing jdb ...
> stop in FetchURL.main (1)
Deferring breakpoint FetchURL.main.
It will be set after the class is loaded.
> run FetchURL http://localhost
run FetchURL http://localhost
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint FetchURL.main
Breakpoint hit: "thread=main", FetchURL.main(), line=48 bci=0
48 for (i = 0; i < args.length; i++)
main[1] list
44 {
45 int i;
46 FetchURL f;
47
48 => (2) for (i = 0; i < args.length; i++)
49 {
50 System.out.println(args[i] + ":");
51 System.out.println(new FetchURL(args[i]));
52 }
53 }
main[1] step
>
Step completed: "thread=main", FetchURL.main(), line=50 bci=5
50 System.out.println(args[i] + ":");
main[1] step
> http://localhost:
Step completed: "thread=main", FetchURL.main(), line=51 bci=32
51 System.out.println(new FetchURL(args[i]));
main[1] step
>
Step completed: "thread=main", FetchURL.<init>(), line=8 bci=0
8 {
main[1] list
4 public class FetchURL {
5 private URL requestedURL;
Search WWH ::




Custom Search