epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.13k stars 69 forks source link

Look into DAP support. #80

Open epasveer opened 2 years ago

epasveer commented 2 years ago

From a Reddit user:

I think a rewrite of this project using the DAP (Debug Adapter Protocol) as the interface between the GUI and the debugger could be industry changing.

The DAP is pretty meh at the moment since it was designed with the needs of web debugging in mind and not native debugging. Thus much that you'd expect from gdb/lldb based debuggers is missing (e.g. the command interpreter support) and the maintainers aren't interested in feature requests without example implementations.

Taking this exact project and gutting the MI components and using only the DAP and then extending the DAP protocol to support the features missing here could make this the de facto industry standard debugging experience beyond even gdb/c++.

Also, where's the strong Linux coupling? Qt + gdb-mi are both platform agnostic.

https://www.reddit.com/r/cpp/comments/wjoi6b/seer_a_new_gui_frontend_to_gdbmi_updated_v18/

epasveer commented 1 year ago

Seems like the latest gdb supports DAP. Need to check into this.

https://www.phoronix.com/news/GDB-Debug-Adapter-Protocol#:~:text=With%20the%20latest%20GDB%20development%20code%20the%20support,that%20output%20can%20be%20encapsulated%20by%20the%20protocol.

epasveer commented 10 months ago

I'm going to close this task. I don't think DAP is in my future any time soon.

DAP seems to be a "mi" alternative. "mi" being the 'api' that Seer and other frontends use to talk to gdb. DAP seems to be JSON based. "mi" is more Python dictionaries/lists/sets.

Also, even though the link says it's ready in the latest gdb, it isn't. Maybe it's there in Window's version of gdb.

So, for now, I'll close this task.

lanza commented 5 months ago

Any thoughts on this topic? gdb now supports the DAP (along with many other debuggers).

epasveer commented 5 months ago

I've re-opened this task. For my reference, he's gdb's info on DAP support.

https://sourceware.org/gdb/current/onlinedocs/gdb.html/Debugger-Adapter-Protocol.html

I'll take a look at it when I can.

epasveer commented 4 months ago

Another link for me to look into.

https://www.reddit.com/r/emacs/comments/11hhjn9/gnu_debugger_gdb_adds_support_for_microsofts/