rcarriga / vim-ultest

The ultimate testing plugin for (Neo)Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Provide :UltestAttachDebug command

RonanMacF opened this issue · comments

New issue to replace #49 to keep things a bit cleaner

The functionality to attach to current processes and open a debugger in a floating window works well using :UltestAttach. What would be interesting is if similar functionality could be added to attach to programs running using DAP.

For example, with debugpy we could add

import debugpy
debugpy.listen(5678)

debugpy.beakpoint() 

Then running :UltestAttachDebug would attach to this instance and open the tray/sidebar.

Would something like this be feasible?

I'm not sure I get why you'd want to do this over just launching with the UltestDebug commands? Off the top of my head it seems that this would be already possible by running the test and attaching to the remote with your own configuration manually. For ultest to do this automatically would be nearly impossible as is because it has no idea that the program has stopped so it couldn't know when to attach

Closing as no response, feel free to reopen