Need help with debugging project with Netbeans 4.0
Hi,
I am using Netbeans 4.0. I got the project to compiled, but when I go to Run menu, the debug feature was grayed out. I placed the breakpoint in my code and need to step through the code for debugging, but I can't step/debug the code.
What can I do to fix this error?
Thanks,
Rage
[316 byte] By [
comicragea] at [2007-10-1 15:12:10]

You can force NetBeans to re-initialize itself by deleteing the .netbeans folder. Normally you find this folder in the user home directory ( in my case : C:\Documents and Settings\Uhres Andr閈.netbeans ) . Before you delete the .netbeans folder you must close your NetBeans session.
When you start NetBeans again after having deleted .netbeans, you will get the same wellcome screen you got with your very first startup. After that your problem should be solved.
You need to have an ant target that will start the application for debugging. If you're using one of the Netbeans project templates, the target should be there for you. If your project uses its own ant files, you'll have to add the target yourself. The NetBeans Help does a good job of explaining this, and gives you a link for more information.
Alternatively, you can manually start your program with the -Xdebug switch, and attach to it with NetBeans.