No description
example.rb | ||
example_debug.rb | ||
flake.lock | ||
flake.nix | ||
README.md |
Reproduction devshell services issues
This repo is a minimal reproduction
example:start
When example:start
finishes, the process seems to exit, but the pidfile remains:
21:31:47 system | ruby.1 started (pid=2113)
21:31:47 ruby.1 | main fn
21:31:47 system | ruby.1 stopped (rc=0)
To start the service again, we have to call example:stop
and then example:start
debug:start
When debug:start
reaches the debugger statement, the ruby process is stopped. I would expect this to allow me to use the debug tool.
The pidfile also remains in this example.
21:33:08 system | ruby.1 started (pid=2273)
21:33:08 ruby.1 | Before debug
21:33:08 ruby.1 | [1, 10] in example_debug.rb
21:33:08 ruby.1 | 1| require 'debug'
21:33:08 ruby.1 | 2|
21:33:08 ruby.1 | 3| def main
21:33:08 ruby.1 | 4| puts "Before debug"
21:33:08 ruby.1 | => 5| debugger
21:33:08 ruby.1 | 6| puts "After debug"
21:33:08 ruby.1 | 7| exit(0)
21:33:08 ruby.1 | 8| end
21:33:08 ruby.1 | 9|
21:33:08 ruby.1 | 10| main
21:33:08 ruby.1 | =>#0 Object#main at example_debug.rb:5
21:33:08 ruby.1 | #1 <main> at example_debug.rb:10
21:33:08 ruby.1 | (rdbg) Really quit? [Y/n]
21:33:08 system | ruby.1 stopped (rc=0)