(command.ShFunction
  name_tok: <_Dbg_debugger>
  name: _Dbg_debugger
  body: 
    (BraceGroup
      left: <Id.Lit_LBrace '{'>
      children: [
        (command.Simple
          blame_tok: <set>
          more_env: []
          words: [{<set>} {<-o>} {<functrace>}]
          redirects: []
          do_fork: T
        )
        (command.If
          if_kw: <Id.KW_If if>
          arms: [
            (IfArm
              keyword: <Id.KW_If if>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.DParen
                          left: <Id.Op_DLeftParen _>
                          child: 
                            (arith_expr.Binary
                              op_id: Id.Arith_Great
                              left: {($ Id.VSub_Pound '#')}
                              right: {<Id.Lit_Digits 0>}
                            )
                          right: <Id.Op_DRightParen _>
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              then_kw: <Id.KW_Then then>
              action: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'step_ignore='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'step_ignore='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'step_ignore='> name:step_ignore)
                      op: assign_op.Equal
                      rhs: {($ Id.VSub_Number 1)}
                    )
                  ]
                  redirects: []
                )
                (command.Simple
                  blame_tok: <shift>
                  more_env: []
                  words: [{<shift>}]
                  redirects: []
                  do_fork: T
                )
              ]
              spids: [88 103]
            )
          ]
          else_kw: <Id.KW_Else else>
          else_action: [
            (command.Simple
              blame_tok: <typeset>
              more_env: []
              words: [
                {<typeset>}
                {<Id.Lit_VarLike 'step_ignore='> 
                  (BracedVarSub
                    left: <Id.Left_DollarBrace '${'>
                    token: <Id.VSub_Name _Dbg_step_ignore>
                    var_name: _Dbg_step_ignore
                    suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{(SQ )})
                    right: <Id.Right_DollarBrace '}'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
          ]
          fi_kw: <Id.KW_Fi fi>
          redirects: []
        )
        (command.WhileUntil
          keyword: <Id.KW_While while>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Great
                          left: {($ Id.VSub_Pound '#')}
                          right: {<Id.Lit_Digits 0>}
                        )
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          body: 
            (command.DoGroup
              left: <Id.KW_Do do>
              children: [
                (command.Simple
                  blame_tok: <eval>
                  more_env: []
                  words: [{<eval>} {($ Id.VSub_Number 1)}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <shift>
                  more_env: []
                  words: [{<shift>}]
                  redirects: []
                  do_fork: T
                )
              ]
              right: <Id.KW_Done done>
            )
          redirects: []
        )
        (command.If
          if_kw: <Id.KW_If if>
          arms: [
            (IfArm
              keyword: <Id.KW_If if>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          left: <Id.KW_DLeftBracket '[['>
                          expr: 
                            (bool_expr.Unary
                              op_id: Id.BoolUnary_z
                              child: {($ Id.VSub_DollarName _Dbg_set_trace_init)}
                            )
                          right: <Id.Lit_DRightBracket ']]'>
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              then_kw: <Id.KW_Then then>
              action: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike '_Dbg_set_trace_init='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike '_Dbg_set_trace_init='>
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike '_Dbg_set_trace_init='>
                          name: _Dbg_set_trace_init
                        )
                      op: assign_op.Equal
                      rhs: {<1>}
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike '_Dbg_step_ignore='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike '_Dbg_step_ignore='>
                      lhs: 
                        (sh_lhs_expr.Name
                          left: <Id.Lit_VarLike '_Dbg_step_ignore='>
                          name: _Dbg_step_ignore
                        )
                      op: assign_op.Equal
                      rhs: 
                        {
                          (BracedVarSub
                            left: <Id.Left_DollarBrace '${'>
                            token: <Id.VSub_Name step_ignore>
                            var_name: step_ignore
                            suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<0>})
                            right: <Id.Right_DollarBrace '}'>
                          )
                        }
                    )
                  ]
                  redirects: []
                )
                (command.Simple
                  blame_tok: <_Dbg_write_journal>
                  more_env: []
                  words: [{<_Dbg_write_journal>} {(DQ <'_Dbg_step_ignore=0'>)}]
                  redirects: []
                  do_fork: T
                )
              ]
              spids: [161 173]
            )
          ]
          else_kw: <Id.KW_Else else>
          else_action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike '_Dbg_step_ignore='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike '_Dbg_step_ignore='>
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike '_Dbg_step_ignore='>
                      name: _Dbg_step_ignore
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (BracedVarSub
                        left: <Id.Left_DollarBrace '${'>
                        token: <Id.VSub_Number 1>
                        var_name: 1
                        suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<1>})
                        right: <Id.Right_DollarBrace '}'>
                      )
                    }
                )
              ]
              redirects: []
            )
          ]
          fi_kw: <Id.KW_Fi fi>
          redirects: []
        )
        (command.Simple
          blame_tok: <trap>
          more_env: []
          words: [{<trap>} {(SQ <'_Dbg_debug_trap_handler 0 "$BASH_COMMAND" "$@"'>)} {<DEBUG>}]
          redirects: []
          do_fork: T
        )
      ]
      redirects: []
      right: <Id.Lit_RBrace '}'>
    )
)