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

How to debug a wireshark dissector ?

0

I just want to debug some part of my custom dissector with printf. But I don't know where the stdout is redirect, and the only answer that I found is to open a "debug console window", but I don't have this option in my wireshark.

I need help.

asked 20 Mar '11, 08:20

chronidev's gravatar image

chronidev
11557
accept rate: 0%

edited 20 Mar '11, 08:20


2 Answers:

1

From your comment I assume you don't run on Windows, that's good.

As you said, output goes to stdout. So open up a console window and start Wireshark from there. I actually do that always, having setup a desktop file which opens a console first then launches Wireshark.

answered 20 Mar '11, 08:45

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Thank you. I think it's because we are Sunday, I had forgotten to make the "make install". Sorry.

(20 Mar '11, 09:09) chronidev

3

open a "debug console window", but I don't have this option in my wireshark.

In Wireshark do Edit ! Preferences and select "Always (debugging)" from the drop-down menu on the "Open a console window" preference.

answered 20 Mar '11, 08:28

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

With the latest svn tree I don't have this option in the preference box.

(20 Mar '11, 08:35) chronidev