Your proposal
Allow nesting commands like this:
debugger(do: "break Foo#initialize do: (watch @ivar do: pp self)")
Or even:
debugger(do: {"break Foo#initialize"=>{do: {"watch @ivar"=>{do: "pp self"}}},"catch MyError"=>{do: "bt 20"}})This will allow users to write a simple script, place it at one place (e.g. a Rails controller), and execute the entire debugging process without any automatically.
Right now it's not possible because the debugger assumes do: or pre: options only have 1 level of action.
Your proposal
Allow nesting commands like this:
Or even:
This will allow users to write a simple script, place it at one place (e.g. a Rails controller), and execute the entire debugging process without any automatically.
Right now it's not possible because the debugger assumes
do:orpre:options only have 1 level of action.