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

Why is Eclipse not recommended for Wireshark development in Linux?

0

I'm used to use Eclipse for my debugging work. In the current time I need to debug a Wireshark dissector in Linux. Googling Eclipse and Wireshark gives me the impression that it is not recommended to use Eclipse for Wirshark development work in general. Here is an example. I'd like to know why is it not recommended? What makes Eclipse not useful for debugging Wireshark? and If I have to learn a new debugger to debug Wireshark which one is easier to use and faster to learn DDD or GDB?

Thanks in advance for sharing your experiences!

asked 15 Jul '14, 12:07

flora's gravatar image

flora
156313338
accept rate: 100%

edited 15 Jul '14, 12:58

1

I've never heard of "GDP"; did you mean "GDB"? If you're used to debugging with an IDE, using ddd may be easier for you than jumping straight in to using gdb directly, although you should know that ddd is just a graphical front end to gdb. Learning at least the basics of interacting with gdb directly would be useful for you in the future in any case.

(15 Jul '14, 12:48) multipleinte...
1

<why isn't eclipse recommended? Probably because none of the core developers use it and if some one is using it no one bothered to write an instructor how to use it. Personally I develop on windows and use the msvc debugger or g_warning() or printf()

(15 Jul '14, 12:53) Anders ♦

I've corrected it thank you @multipleinte... Thanks @Andres for sharing your personal experience.

(15 Jul '14, 13:06) flora

One Answer:

2

I wouldn't regard Eclipse as "not recommended" more as just not used by those core developers working on Linux, where most seem to be happy with a text editor and command line compilation and debugging with GDB.

Even on Windows, I think most devs just use a text editor and command line compiles, then fire up either WinDbg or the Visual Studio debugger when needed.

You might look into using CMake to build Wireshark, as CMake can generate Eclipse CDT project files (amongst many other build formats) to build (and I presume debug) using Eclipse. When I get the CMake build for Wireshark working properly on Windows, then I would expect some more devs to use it to generate Visual Studio solutions and then work in VS.

answered 15 Jul '14, 13:00

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

edited 15 Jul '14, 13:34