Running NetXMS under debugger

From NetXMS Wiki
Revision as of 18:13, 13 September 2022 by AlexKirhenshtein (talk | contribs) (Text replacement - "^" to "{{deprecated}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

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