github mfussenegger/nvim-dap 0.10.0

26 days ago

General

  • This is the last version supporting nvim 0.9.5. Going forward 0.10.x, 0.11.x and nightly are supported.

  • Changed how errors are logged for debug adapters. stderr output from a debug adapter is now always routed to a dedicated log file that is removed when the debug adapter process exits, unless it exits with an error. The same is the case for stdout for adapters communicating via TCP or PIPE. Note that some adapters (like delve) used stdout to show the output of the application you're debugging by default. These adapters typically also have an option to instead make use of OutputEvent events which will result in the output showing up in the REPL. For delve the configuration property is called outputMode.

  • The terminal buffer (:help dap-terminal) now infers the errorformat from the buffer from which you started a debug session.

  • Added a :DapPause user command.

API

  • Fixed an issue that caused response handlers for session:request to receive the err also as response

  • The ErrorResponse values provided as err parameter to event listeners or the response handler of session:request now has a __tostring metatable method to support tostring(err).

  • Event listeners (:help dap-listeners) can now return true to remove a registered listener. This can be useful for once-off listeners and mirrors nvim's autocmd API.

  • Tweaked the display of the process information for utils.pick_process to better fit onto the screen. The function now also takes a label and prompt option to customize that further.

REPL

  • Added ]] and [[ keymaps to the REPL buffer to jump between prompts.

  • Added an opts parameter to repl.execute() to allow setting the context for an evaluate request.

Don't miss a new nvim-dap release

NewReleases is sending notifications on new releases.