Pretty printing #1289
sleeptightAnsiC
started this conversation in
Ideas
Pretty printing
#1289
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Pretty printing is a common feature of native debuggers like GDB or LLDB, and it's usually achieved via scripting API (e.g. this is how GDB implements this). The way it works is fine when dealing with only one debugger that you know well, but when moving to a different one, you gotta start all over again and learn whole new API just to print few data containers.
I found said problem super annoying and was wondering if it would be possible to pretty print through nvim-dap instead? After all the plugin passes the data from debugger so it could evaluate and format it a little bit? Though I'm unsure if at the stage when nvim-dap gets the data, the information is already a raw string or not.
I haven't studied the source code yet, just took a look here and there, but I would like to give this idea a try. Any advice where shall I start? lua/dap/repl.lua seems promising to me, I'll probably try setting the breakpoint somewhere there.
Either way, thanks in advance for any feedback and apologies if this has been already asked/answered/discussed elsewhere.
Beta Was this translation helpful? Give feedback.
All reactions