Wireshark-dev: Re: [Wireshark-dev] How to compile and execute the source code of wireshark?
From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Thu, 18 Jun 2015 16:24:00 +0200
Hi,

2015-06-18 16:17 GMT+02:00 JAI BHAGWAN YADAV <saurav.yadav0005@xxxxxxxxx>:
Hello all,
I am a beginner,
Q- How to compile and execute the source code of wireshark so that
     (i) Whenever I will compile and execute it, it will also run wireshark
     (ii) I will use printf firstly so I can see the output at terminal

O.S. used: 64 bit, Ubuntu 12.04
What I tried?
I have tried ./autogen.sh                               It run successfully.
then            ./configure                                  It also run successfully, takes 2 minutes to execute on my system (1 GB RAM, virtual machine).
then            make                                          It also run successfully, takes 15-20 approx minutes to execute.
Only warnings can be seen in between of these execution but no error occured. But also no wireshark window get opened, it will only open when I execute the command ./wireshark. So, please tell me the correct way and order to write all the commands. I want to make changes in the menu bar so that it will show the changes made in the wireshark and also print the output of the printf instruction I will put in one of the code.

Well, this seems perfectly normal to me. make command allows you to compile the program (needed only once after each source code change), and ./wireshark allows you to run the program (can be run multiple times once the program is compiled). So far so good.
If you want to launch automatically Wireshark after compiling it, I suggest you to create a small shell script that will run both commands (make && ./wireshark).
Regarding the best practice for debugging Wireshark, I recommend you to read this wiki page: https://wiki.wireshark.org/Development/Tips

Have fun,
Pascal.