Closed eggplants closed 1 year ago
I have no idea about it.
Have you verified that debugger
method is invoked?
Yes. The debug gem's debugger has shown in docker console when runtime ruby has reached the debugger
line.
Let me clear the repro process.
debugger
method is invokeddocker attach
Questions:
Thanks, Koichi
Thank you. I'll create MRE code soon.
Your environment
ruby -v
:ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-darwin22]
rdbg -v
:rdbg 1.8.0 {:mode=>:start, :no_color=>nil}
Describe the bug
I tried to set breakpoint within Rails constroller:
And then I ran
docker compose up
and sent request to the method withcurl
. After launching debugger, I couldn't attach to the container process running rails service bydocker attach bar-web-1
.Interestingly, I then installed
pry-byebug
and replaceddebugger
withpry.binding
and was able to attach without problems.No one else seemed to have this problem on the web, so I could be doing something wrong.
To Reproduce TBD
Expected behavior User must be able to attach with
docker attach
even if degug gem's debugger is launched.Additional context TBD