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]
# 1
Check if debugging is enabled : Tools | Options | IDE Configuration | System | Modules | Debugging
uhranda at 2007-7-10 19:15:27 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2

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.

uhranda at 2007-7-10 19:15:27 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 3
Maybe there is also a memory problem and that you need to upgrade your computer's memory. I recommend 512MB RAM.
uhranda at 2007-7-10 19:15:27 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 4

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.

kdgregorya at 2007-7-10 19:15:27 > top of Java-index,Archived Forums,Debugging Tools and Techniques...