This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to see console messages in wireshark linux ?

0

http://wiki.wireshark.org/Development/Tips

Above link shows how can we use printf to debug in console. But i am not able to see console in linux. Please help.

asked 12 Mar '13, 23:42

yogeshg's gravatar image

yogeshg
41222326
accept rate: 0%

I mean , should proto_tree_add_debug_text display in gdb output ?

(12 Mar '13, 23:50) yogeshg

One Answer:

1

Open a console, launch Wireshark from it, see the console output. Try this on your fresh build:

WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 WIRESHARK_DEBUG_MIBS=6 ./wireshark

or with gdb:

WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 WIRESHARK_DEBUG_MIBS=6 libtool --mode=execute gdb wireshark
(gdb) run

These env vars only tweak Wireshark into knowing it runs from the build directory and spew a lot of MIB parsing output. No need for them other than to showcase the console output.

answered 13 Mar '13, 00:05

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%