Running NetXMS under debugger

From NetXMS Wiki
Jump to: navigation, search

The following example assumes that NetXMS is installed under /opt/netxms.

1. Start debugger:

# gdb /opt/netxms/bin/netxmsd

You should get debugger command line prompt:

(gdb)

2. Start application

(gdb) run -D2

Application should start and run. After the crash, debugger prompt will appear again:

(gdb)

3. Get stack trace:

(gdb) bt

Send command output to technical support.

4. Quit debugger

(gdb) quit