mfussenegger / nvim-dap-python

An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
GNU General Public License v3.0
492 stars 46 forks source link

Error message has no line breaks #104

Closed MisterSincere closed 8 months ago

MisterSincere commented 1 year ago

Hello, just set up your plugin and it was pretty easy. Now I have the problem that within a simple test program, where I just have an IndexError, the according error message goes right out of screen. Hence for example the stack trace is not readable.

Is there a configuration I can change for that? Is there a desired behavior for that?

It would be pretty nice to be able to read the error "inlined" in the code. Otherwise I just start the program normally and check the error message, which does not feel right.

mfussenegger commented 8 months ago

If you're referring to the error of an exception breakpoint you can use the neovim diagnostic api to show the full message. E.g.: :lua vim.diagnostic.open_float()

If it's about repl output - there are open issues in nvim-dap, see: