Debugging Structr using a remote Debugger
The first step to debugging Structr is to ensure a clean build.
For more details regarding this process refer to Building Structr from the Source Code.
Preparing the Structr instance
- Navigate to the
root
folder of Structr. - Start the instance using
./structr-ui/run_debug.sh
. - Wait for the instance to be operational.
Attaching the debugger
Basis requirements
The debugger must support attachment using Sockets
.
If this is supported, the debugger can be attached to port 5005
.
Netbeans IDE
- Open the dialog found in
Debug->Attach a debugger..
. - Specify the host of your instance e.g.
localhost
and the debug port5005
. - Confirm your settings with the
Ok
button. - The debugger is attached and ready for use.