-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
This issue should gather ideas on how to improve debugging. (Solutions are welcome, too!)
Currently we have:
- Saving a file in
$XDG_CONFIG_HOME/nvimwill trigger a rebuild and put compile time errors in the quickflix list - If logging is enabled, the raw msgpack-rpc messages we receive are logged.
Those things are incredibly useful, but I think we can do better!
- When I was implementing the registration of functions or filling the quickfixlist with compile errors from dyre, looking at the logged msgpack-rpc messages was insanely useful. I think this should be made more accessible and integrated. I imagine opening a window inside neovim that (pretty) prints all the msgpack-rpc communication after issueing a command (e.g.
:DebugNvimhs). - Implementing new functions that interact with neovim, and hence require the
Neovimtransformer stack, should be possible from a REPL. I don't know if it's possible to run a ghci-like session inside such a transformer. Or something int he direction of https://github.com/chrisdone/ghci-reload-demo could be conveniently achieved.