(command.CommandList
  children: [
    (command.Simple
      blame_tok: <_Dbg_help_add>
      more_env: []
      words: [
        {<_Dbg_help_add>}
        {<tty>}
        {
          (SQ <'tty\n'> <'\n'> 
            <'Set the output device for debugger output. Use "&1" if you want debugger\n'> <'output to go to STDOUT.\n'>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <_Dbg_do_tty>
      name: _Dbg_do_tty
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <typeset>
              more_env: []
              words: [{<typeset>} {<-i>} {<Id.Lit_VarLike 'rc='> <0>}]
              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_Less
                                  left: {($ Id.VSub_Pound '#')}
                                  right: {<Id.Lit_Digits 1>}
                                )
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <_Dbg_errmsg>
                      more_env: []
                      words: [
                        {<_Dbg_errmsg>}
                        {(DQ <'Argument required (terminal name for running target process).'>)}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [89 104]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <typeset>
              more_env: []
              words: [{<typeset>} {<Id.Lit_VarLike 'tty='> ($ Id.VSub_Number 1)}]
              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.Simple
                              blame_tok: <_Dbg_check_tty>
                              more_env: []
                              words: [{<_Dbg_check_tty>} {($ Id.VSub_DollarName tty)}]
                              redirects: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike '_Dbg_tty='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike '_Dbg_tty='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_Dbg_tty='> name:_Dbg_tty)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName tty)}
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike '_Dbg_prompt_output='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike '_Dbg_prompt_output='>
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike '_Dbg_prompt_output='>
                              name: _Dbg_prompt_output
                            )
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName _Dbg_tty)}
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <_Dbg_msg>
                      more_env: []
                      words: [
                        {<_Dbg_msg>}
                        {(DQ <'Debugger output set to go to '> ($ Id.VSub_DollarName _Dbg_tty))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [128 136]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
  ]
)