From a3a200f2af1168668b4475e2f1ae8476027bba85 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Fri, 13 Dec 2024 18:25:39 +0900 Subject: [PATCH 1/2] Create. --- doc/wsl.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/wsl.md 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 From 7142e7ed84c41a7176229b84d8b9213254a402c4 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Fri, 13 Dec 2024 18:25:47 +0900 Subject: [PATCH 2/2] Update. --- lua/neoruby-debugger.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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