Applet Debugger

How do I use the applet debugger? If I choose to step into the applet (not Main), then the program steps into main, only.
[128 byte] By [Pirilloa] at [2007-11-26 14:28:05]
# 1
That is not enough information.
abillconsla at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 2

Sorry.

I am using NetBeans IDE 5.0. When I write an application, I can click on the Step Into icon and the IDE takes me through my code. I think this is totally cool.

Anyway, I have written an applet (following some exercises in an old collage textbook). The IDE does not seem to want to allow me to Step Into an applet. How do I get the same line-by-line walk through for an applet as an application?

If I right-click on the applet from the projects tree and choose the debugger, there appears a Debug Applet window at the bottom of my IDE, but there is no walk through of the code.

Pirilloa at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 3
Possibly the code is not compiled with debugging information included. See the -g option on the javac command.
ChuckBinga at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 4

Thanks.

I was hoping to be able to 'Step Into' an applet from within the Netbeans IDE GUI and not have to fuss with the command line prompt. I have already put numerous hours trying to sift through SUN's documentation on how to set the PATH Environment Variable so that I could use the javac command, but to no avail.

Anyone else have a suggestion on how to 'Step Into' an applet, not an application, from within the Netbeans IDE GUI?

Pirilloa at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 5
I've not used netbeans, but eclipse can step through an applet just like it can an application. I'd be very surprised if netbeans can't do the same, you must be doing something different. re-read the docs, I'm sure you can do this without any fuss
georgemca at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 6
http://www.netbeans.org/kb/articles/tutorial-applets-40.html#runanddebug
stoppera at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 7

"I have already put numerous hours trying to sift through SUN's documentation on how to set the PATH Environment Variable so that I could use the javac command, but to no avail."

I would address this issue. This is - IMO - more important than the issue you are focusing on at the moment.

If you agree - tell us what you have tried thus far and perhaps we can get you up and running.

!Bill

abillconsla at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...
# 8

Thanks, Stopper--you led me on the right path and now I've got it!

Following your link, I learned how to adjust the .html file from within the GUI. I had never known how to do it from the GUI. From there it was by accident that I got the Step Into working. And for anyone following this link, this is how I did it.

Set a Break Point inside one of the methods, right click on the applet (.java) and then choose Debug File; the program automatically steps into the applet.

The reason I didn't catch this before is that when debugging an application I don't need to use a Break Point and have to manually press the Step Into button.

I am splitting up the Duke Dollars among three responders for their efforts.

Pirilloa at 2007-7-8 2:21:57 > top of Java-index,Java Essentials,New To Java...