I am having the free version of Visual c++ 2008 for running the build of wireshark. But debugging and development through command prompt seems to be difficult task. Is there anyway I can do the development in visual c++/Studio. Plz guide me through the steps.
asked 28 Jan '12, 01:26
The short answer: Wireshark on Windows is built using nmake as described in the Developer's Guide.
AFAIKT there is no .proj file, etc which can be used to do all the development in directly in Visual Studio.
That being said, it's quite easy to use Visual Studio for debugging once Wireshark has been built using nmake.
What is it that you find is a "difficult task" when "debugging and developing through the command prompt" ?
OK: To use Visual Studio for debugging Wireshark:
"To create the project/Solution. in VS, do File ! Open ! Project/Solution of the executable in the wireshark-gtk2 directory (rather than using the executable in the top-level directory)."
Once you've done the above you can use all the normal VS functionality to open source files, to do source level debugging actions such as setting breakpoints, starting and stepping through the program and so on...
Using the "View references for a symbol" function in Visual Studio (Updated: June 13,2012)
The Microsoft Visual Studio documentation indicates that you need to build a "Browse Information File" (for Wireshark: as described below)
However: Based upon chatter on the web (and my own failed attempts), using a "Browse Information File" with Visual Studio 2010 doesn't work (isn't supported ?)
The function may work when using Visual Studio 2008 (I haven't actually tried it).
See (for example): using a .bsc (source browser) file with Visual Studio 2010
Creating a .bsc file when building Wireshark:
answered 28 Jan '12, 07:52
Bill Meier ♦♦
edited 13 Jun '12, 08:58