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

Debug console won’t show up when opened through python

0

I'm using a python program to open wireshark to use a plugin I wrote. However, the debug console won't show up when my python program opens wireshark. If I open wireshark normally, the debug console works fine, but I need the console to open when my python program opens wireshark. Any ideas?

asked 21 Oct '15, 09:54

swelna's gravatar image

swelna
6112
accept rate: 0%

Any ideas?

Maybe.

Some questions first:

  • what is your OS and OS version?
  • what is your Wireshark version?
  • how do you start wireshark from your Python code?
  • how do you start wireshark "normally" if you see the debug console?
(21 Oct '15, 13:01) Kurt Knochner ♦

I am running Windows 7 Enterprise SP1. My Wireshark version is 1.12.0. I'm using a python subprocess with the function Popen(), however, I can't currently post my code. Finally, When I say start wireshark "normally", I mean double clicking the shortcut on my desktop.

(26 Oct '15, 07:25) swelna

The debug console will only apprear if you start Wireshark from the GUI, as there would be no console to print messages to STDOUT and STDERR. If you call Wireshark from Python with popen(), you should be able to read STDOUT and STDERR directly (https://www.google.com/?q=python%20popen%20stdout ). If you don't know how to do that, please ask in a Python forum, as this is more a Python question than a Wireshark question.

(26 Oct '15, 13:24) Kurt Knochner ♦