diff --git a/doc/wsl.md b/doc/wsl.md new file mode 100644 index 0000000..c85f61f --- /dev/null +++ b/doc/wsl.md @@ -0,0 +1,14 @@ +```markdown +# port number and host number +RUBY_DEBUG_PORT=45555 RUBY_DEBUG_HOST=0.0.0.0 rdbg +``` + +```markdown +# host number only +RUBY_DEBUG_HOST=0.0.0.0 rdbg +``` + +```markdown +# port number +RUBY_DEBUG_PORT=45555 +``` \ No newline at end of file diff --git a/lua/neoruby-debugger.lua b/lua/neoruby-debugger.lua index f03d83c..1eba128 100644 --- a/lua/neoruby-debugger.lua +++ b/lua/neoruby-debugger.lua @@ -376,6 +376,20 @@ local function setup_rdbg_configuration(dap) localfs = true, waiting = 1000, }, + { + type = 'ruby', + name = 'wsl2 run current file : prototype', + request = 'attach', + command = 'ruby', + script = "${file}", + port = 38698, + server = '0.0.0.0', + options = { + source_filetype = 'ruby'; + }, + localfs = true, + waiting = 1000, + }, } if configs == nil or configs.dap_configurations == nil then