January 2015
Intermediate to advanced
298 pages
6h 27m
English
Obviously, when someone is writing any code, some debugging is required. It is no surprise that NetBeans, as a high-standard IDE, provides some tools to do that. This recipe will show how to debug the Java code using NetBeans.
You will need to install NetBeans and set up a development environment, as described previously in the chapter.
We will use NetBeans to debug our own OpenJDK Java code. We will need to rebuild OpenJDK with debug symbols, and configure NetBeans to make debugging possible:
bash ./configure --enable-debug make all CONF=linux-x86_64-normal-server-fastdebug
./build/linux-x86_64-normal-server-fastdebug/jdk/bin/java ...Read now
Unlock full access