This is our old Q&A Site. Please post any new questions and answers at

I want to do some printf debugging and have used g_print() as described in .

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

accept rate: 0%

edited 13 Jun '12, 09:31

Bill%20Meier's gravatar image

Bill Meier ♦♦

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

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

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.

permanent link

answered 13 Jun '12, 10:35

806cat's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Jun '12, 09:01

question was seen: 5,030 times

last updated: 12 Mar '13, 03:48

p​o​w​e​r​e​d by O​S​Q​A