Ask Your Question
0

How to turn on console for extcap

asked 2018-02-01 23:05:22 +0000

jzhvymetal gravatar image

I was using a older version Wireshark that allowed console output to be displayed when using a extcap executable. The newer version hides it. I was using a standard printf to debug my program. How to you turn back the console output for the extcap executable? I tried turning on Wireshark console but is does not show the standard output.

Also my extcap stops collecting packets which it did not do in the older version. Anybody have any ideas what might have changed in the newer version? I am having a tough time since my debug info is not show in the console.

edit retag flag offensive close merge delete

Comments

Ok I if turn of all cout to the console packet do not stop. So it has something to do with the standard output being written. Is there anyway to still write to console window for a extcap program?

jzhvymetal gravatar imagejzhvymetal ( 2018-02-01 23:34:30 +0000 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-07-06 13:23:24 +0000

cmaynard gravatar image

I'm not sure if this is what you mean, but at least on Windows systems, you can enable the console via Edit -> Preferences -> Advanced -> gui.console_open:Value=[ALWAYS|AUTOMATIC].

edit flag offensive delete link more
0

answered 2018-07-06 11:12:15 +0000

rknall gravatar image

Wireshark uses the glib system for printing messages to the console. One caveat is, that this catches even stderr and stdout messages. You can use GDEBUG and GMESSAGES_DEBUG as described on https://developer.gnome.org/glib/stab... to make them visible.

Additionally you might need to create qtlogging.ini with appropriate settings for your application as well (http://doc.qt.io/qt-5/qloggingcategor...).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-02-01 23:05:22 +0000

Seen: 116 times

Last updated: Jul 06