Any way to connect directly?
MetalSlime0 opened this issue · 4 comments
I'm making a language that supports the DAP directly - like, you can just connect to the executable running the code on a local port and start sending DAP messages. Is there any kind of "passthrough" adapter that would do this? (Obviously it would only support "attach" and not "launch".) If not, is it easy to make?
Make an AdapterConfiguration
for it like all the other adapters it should be a tiny amount of code since all you are doing is grabbing the port to connect from the configuration and returning a dap.SocktTransport
from the start
method.
https://github.com/daveleroy/sublime_debugger/tree/master/modules/adapters
Thanks. Is this something I would have to submit a pull request for or is there a place users could just copy the file?
You should be able to place a file in the Packages
directory and it will be picked up. All AdapterConfiguration
subclasses are registered during plugin_loaded
.
Great, thanks!