log messages and conditional break points? #537
Replies: 4 comments
-
It should output the log messages to the stdout (which may be in the terminal if using the integrated or external terminal, otherwise it should be passed to the repl). Variable expansion via I use it all the time and it definitely works with adapters who support it properly. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is my config:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I've been using VS Code and switching to neovim it was a hole new adventure. Well, in VS Code, adding a log message you can pass some variables to the message to print the info:
--- someRandomText { mVariableName[key] }
and it will print:--- someR... { currentValue }
But here in Dap + Neovim, if I do this with:
nnoremap <silent> <leader>lp :lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<CR>
then run dap, in the "Dap Stacks" just shows what I did and does not show the info of "mVariableName[key]".Also in the dap-repl does not show.
Beta Was this translation helpful? Give feedback.
All reactions