You can debug using command-line debuggers such as gdb, dbx, or lldb. If you prefer a graphic debugger, you can use the Data Display Debugger (ddd).
When building using autotools rather than CMake, you cannot load programs such as wireshark into the debugger with a command such as
$ gdb wireshark
because of the libtool build environment. You’ll have to wrap loading wireshark into a libtool command:
$ libtool --mode=execute gdb wireshark
If you prefer a graphic debugger you can use the Data Display Debugger (ddd) instead of GNU debugger (gdb).
Additional traps can be set on GLib by setting the G_DEBUG
environment variable:
$ G_DEBUG=fatal_criticals libtool --mode=execute ddd wireshark
See https://developer.gnome.org/glib/stable/glib-running.html
You can debug using the Visual Studio Debugger or WinDbg. See the section on using the Debugger Tools.