I want to debug my plugin but couldn't find debug console option in EDIT|Preference asked 06 Nov '12, 22:28 Akhil edited 07 Nov '12, 00:30 grahamb ♦ |
2 Answers:
I have said the same in the other question of yours. Go to "Edit->Preference". In the option "Open a console window", change it from "Never" to "Always(debugging)" and click "Apply" answered 07 Nov '12, 02:56 SidR |
Linux doesn't need this option, just launch Wireshark from a terminal window. answered 07 Nov '12, 03:50 Jaap ♦ I am launching wireshark from terminal. what should i do after that to start debugging?????? (08 Nov '12, 00:51) Akhil As already answered in the following question:
You need to add debug statements to your code to see some output in the debug console.
Please read the Developer Guide thoroughly. BTW: Is it really necessary to add 5-6 question marks (?????) to your questions? One should be sufficient to properly flag your sentence as a question ;-) (08 Nov '12, 01:15) Kurt Knochner ♦ I have added the "g_print " statemnet in my code. But the debug console is not opened. (08 Nov '12, 03:00) Akhil Did you start Wireshark from a console window? Are you sure the g_print statement is executed? (08 Nov '12, 04:10) Kurt Knochner ♦ Yes i started Wireshark from a console window. and the g_print statement is executed (08 Nov '12, 04:34) Akhil well, I don't know what's wrong with your code or system, but if I add the following statement to the TCP dissector, I get a message on the console every time the dissector gets executed.
Maybe you try it with a standard dissector first, to see if there is a general problem with your code and/or system. If that works, it should work within your dissector as well. If it does not work, your g_print code is not executed. Regards (08 Nov '12, 05:32) Kurt Knochner ♦ showing 5 of 6 show 1 more comments |
In ubuntu option "Open a console window" is not present