THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to turn on console for extcap

  • retag add tags

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.

jzhvymetal's avatar
1
jzhvymetal
asked 2018-02-01 23:05:22 +0000
edit flag offensive 0 remove flag 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's avatar jzhvymetal (2018-02-01 23:34:30 +0000) edit
add a comment see more comments

2 Answers

0

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...).

rknall's avatar
1
rknall
answered 2018-07-06 11:12:15 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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].

cmaynard's avatar
11.1k
cmaynard
answered 2018-07-06 13:23:24 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer