-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions on execution termination and printing to the dap-repl #13
Comments
I'll answer the questions to the best of my knowledge. It might be too late for you as you may have moved to other things but I'll leave it as a reference, because it's really good questions. Know programmatically when
|
You might want to check out the new configuration I propose on the README. In the previous proposed configuration, it was kind of tedious to enter a port a debugging sessions is started so the current configuration avoids it by setting it to a fixed port number. |
Does look much simpler indeed, ty @jbyuki will test it out when I get in the mood of trying our debugging again :) |
First, ty for this really wonderful plugin, I was able to set it up nicely to work when running
lua require'dap'.continue()
so I can avoid callingrun_this()
or the triple instance logistics (A+B+launch()
instaces) and it works fairly well.In case you're interested, my
one-small-step-for-vimkind
configuration can be found in my config'slua/plugins/dap/lua.lua
.Admittedly I haven't gotten deep into the code of this plugin yet but perhaps there are simple answers for my questions:
Is there an easy way to know when the
luafile <file>
is done so I can shut down the server? I tried all nvim-dap events and none of them seem to fire when execution is done (e.g.event_terminated
,event_stopped
, etc), which brings me to the 2nd question/issue:Running
continue
when execution is done brings up theSession active, but not stopped at breakpoint
prompt which requires to terminate before being able to run the debug configuration again, however sending terminate fails withE5560: vimL function must not be called in a lua loop callback
at the call tovim.fn.sign_unplace
.print
statements in the[dap-repl]
buffer? when using a double instance setup (A being the DAP server) and running:luafile myscript.lua
on A I am able to see the print statements output on the:messages
of A but not in the[dap-repl]
on B - is that a bug/setup issue or even possible?The text was updated successfully, but these errors were encountered: