3.8. Debug Your Version Of Wireshark

3.8.1. Unix-Like Platforms

You can debug using command-line debuggers such as gdb, dbx, or lldb. If you prefer a graphic debugger, you can use an IDE or debugging frontend such as Qt Creator, CLion, or Eclipse.

Additional traps can be set on Wireshark by setting the WIRESHARK_LOG_FATAL environment variable:

$ WIRESHARK_LOG_FATAL=critical gdb wireshark

If you’re encountering memory safety bugs, you might want to build with Address Sanitizer so that Wireshark will immediately alert you to any detected issues.

$ cmake .. -G Ninja -DENABLE_ASAN=1

See https://developer-old.gnome.org/glib/stable/glib-running.html

3.8.2. Windows Native

You can debug using the Visual Studio Debugger or WinDbg. See the section on using the Debugger Tools.