Closed sotte closed 1 year ago
You could create some custom functions that use the session to retrieve the variables and then render them in whatever way you want.
I played around a while ago with graphviz to visualize variables, maybe that gives you an idea how to use the API:
Some more pointers:
request
method on the session
. You get the session via dap.session()
. The signature is session:request(method_name, params, [callback])
. If you're in a coroutine, you can omit the callback and get a err, result
tuple as result instead.current_frame
property which contains a StackFrame if the session is stopped at a breakpoint.scopes
property to the StackFrame
, which contains a list of ScopesThis is super helpful and way more than I was hoping for, thank @mfussenegger! This should be enough to build something.
This is more a question than an issue. I'm wondering how one would go about implementing a custom widget/view for pandas dataframes. The default debug views don't really give you a nicely readable view of the the DF. For displaying one could use e.g. https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/table, but I'm not sure how this would fit into the DAP ecosystem. Do you have any pointers/ideas?