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 edited 13 Jun '12, 09:31 Bill Meier ♦♦ |
One Answer:
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 |
Sorry, that should be "Press any key to exit" above