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

Debug console - nothing displayed

1

I want to do some printf debugging and have used g_print() as described in http://wiki.wireshark.org/Development/Tips .

I am setting the "Open a console window" dropdown to show "Always (debugging)".

I am building from SVN source using MSVC Express 2010. When I run Wireshark by double-clicking on the "Wireshark" icon in "wireshark-gtk2" directory, the console appears but there is no output at all apart from when I close Wireshark and it says "Press and key to exit".

I have read something about stdout redirects but I thought this only applied to dumppcap, not Wireshark itself.

Anyone any idea why g_print() isn't working? I can use fprintf() to a file OK but it is not as convenient

asked 13 Jun '12, 09:01

806cat's gravatar image

806cat
46115
accept rate: 0%

edited 13 Jun '12, 09:31

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850

Sorry, that should be "Press any key to exit" above

(13 Jun '12, 09:02) 806cat

One Answer:

2

OK, I found the solution myself. Using g_print() doesn't work. If you use just printf(), then it does work. The Wiki page is misleading in this respect.

answered 13 Jun '12, 10:35

806cat's gravatar image

806cat
46115
accept rate: 0%