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

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

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.

permanent link

answered 15 Jul '14, 13:00

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

edited 15 Jul '14, 13:34

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×154
×4
×1

question asked: 15 Jul '14, 12:07

question was seen: 3,208 times

last updated: 15 Jul '14, 13:34

p​o​w​e​r​e​d by O​S​Q​A