(CommandList
  children: [
    (C {(.)} {($ VSub_Name '$_Dbg_main')})
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DParen
          child: 
            (ArithBinary
              op_id: Arith_Great
              left: (ArithVarRef name:OPTLIND)
              right: (ArithWord w:{(Lit_Digits 0)})
            )
        )
        (C {(shift)} 
          {
            (DQ 
              (ArithSubPart
                anode: 
                  (ArithBinary
                    op_id: Arith_Minus
                    left: (ArithVarRef name:OPTLIND)
                    right: (ArithWord w:{(Lit_Digits 1)})
                  )
                spids: [102 109]
              )
            )
          }
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (AndOr
                  ops: [Op_DAmp]
                  children: [
                    (DParen
                      child: 
                        (ArithBinary
                          op_id: Arith_DEqual
                          left: (ArithWord w:{($ VSub_Pound '$#')})
                          right: (ArithWord w:{(Lit_Digits 0)})
                        )
                    )
                    (DBracket
                      expr: 
                        (BoolUnary
                          op_id: BoolUnary_z
                          child: {($ VSub_Name '$_Dbg_EXECUTION_STRING')}
                        )
                    )
                  ]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ (${ VSub_Name _Dbg_pname) 
                    (': need to give a script to debug or use the -c option.')
                  )
                }
              ]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[141])]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 136]
        )
      ]
      spids: [16777215 156]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:_Dbg_script_file)
          op: Equal
          rhs: {(DQ ($ VSub_Number '$1'))}
          spids: [159]
        )
      ]
      spids: [159]
    )
    (C {(shift)})
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DBracket
          expr: (BoolBinary op_id:BoolBinary_GlobDEqual left:{($ VSub_Number '$1')} right:{(SQ <-->)})
        )
        (C {(shift)})
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (AndOr
                  ops: [Op_DAmp]
                  children: [
                    (DBracket
                      expr: 
                        (LogicalNot
                          child: (BoolUnary op_id:BoolUnary_d child:{($ VSub_Name '$_Dbg_tmpdir')})
                        )
                    )
                    (DBracket
                      expr: 
                        (LogicalNot
                          child: (BoolUnary op_id:BoolUnary_w child:{($ VSub_Name '$_Dbg_tmpdir')})
                        )
                    )
                  ]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ (${ VSub_Name _Dbg_pname) (': cannot write to temp directory ') 
                    ($ VSub_Name '$_Dbg_tmpdir') (.)
                  )
                }
              ]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[224])]
            )
            (SimpleCommand
              words: [{(echo)} {(DQ (${ VSub_Name _Dbg_pname) (': Use -T try directory location.'))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[237])]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 210]
        )
      ]
      spids: [16777215 245]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:_Dbg_script) op:Equal rhs:{(1)} spids:[251])]
      spids: [251]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: (BoolUnary op_id:BoolUnary_n child:{($ VSub_Name '$_Dbg_EXECUTION_STRING')})
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:_Dbg_script_file)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: (CommandList children:[(C {(_Dbg_tempname)} {(cmd)})])
                        left_token: <Left_CommandSub '$('>
                        spids: [271 275]
                      )
                    }
                  spids: [270]
                )
              ]
              spids: [270]
            )
            (SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_Name '$_Dbg_EXECUTION_STRING'))}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: 16777215
                  arg_word: {($ VSub_Name '$_Dbg_script_file')}
                  spids: [284]
                )
              ]
            )
          ]
          spids: [16777215 267]
        )
      ]
      spids: [16777215 287]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (LogicalNot
                      child: 
                        (BoolUnary
                          op_id: BoolUnary_r
                          child: {(DQ ($ VSub_Name '$_Dbg_script_file'))}
                        )
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ (${ VSub_Name _Dbg_pname) (': cannot read program to debug: ') 
                    (${ VSub_Name _Dbg_script_file) (.)
                  )
                }
              ]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[322])]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 306]
        )
      ]
      spids: [16777215 330]
    )
    (Assignment
      keyword: Assign_Typeset
      flags: [-r]
      pairs: [
        (assign_pair
          lhs: (LhsName name:_Dbg_Dbg_script_file)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [(C {(_Dbg_expand_filename)} {($ VSub_Name '$_Dbg_script_file')})]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [338 342]
              )
            }
          spids: [337]
        )
      ]
      spids: [333]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (DParen child:(ArithVarRef name:_Dbg_set_linetrace))
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(_Dbg_write_journal_eval)} {(DQ ('_Dbg_step_ignore=-1'))})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:_Dbg_QUIT_ON_QUIT)
                  op: Equal
                  rhs: {(1)}
                  spids: [368]
                )
              ]
              spids: [368]
            )
          ]
          spids: [16777215 354]
        )
      ]
      else_action: [(C {(_Dbg_write_journal_eval)} {(DQ ('_Dbg_step_ignore=3'))})]
      spids: [371 384]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (SimpleCommand
                  words: [{(enable)} {(-a)} {(set0)}]
                  redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[404])]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(set0)} {(DQ ($ VSub_Name '$_Dbg_script_file'))})]
          spids: [16777215 409]
        )
      ]
      spids: [16777215 418]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (DParen child:(ArithVarRef name:_Dbg_set_read_completion))
        (C {(_Dbg_complete_level_0_init)})
      ]
    )
    (C {(_Dbg_init_default_traps)})
  ]
)