(command.CommandList
  children: [
    (C {<_Dbg_help_add_sub>} {<set>} {<linetrace>} 
      {(SQ <'set linetrace [on|off]\n'> <'\n'> <'Set shell-like \\"set -x\\" line tracing'>)} {<1>}
    )
    (C {<typeset>} {<-i>} {<Id.Lit_VarLike '_Dbg_linetrace_expand='> <0>})
    (C {<typeset>} {<-i>} {<Id.Lit_VarLike '_Dbg_linetrace_delay='> <0>})
    (C {<_Dbg_help_add_sub>} {<set>} {<linetrace>} 
      {
        (SQ <'**set linetrace** [**on**|**off**]\n'> <'\n'> <'Set xtrace-style line tracing\n'> <'\n'> 
          <'See also:\n'> <'---------\n'> <'\n'> <'**show linetrace**\n'>
        )
      }
    )
    (command.ShFunction
      name: _Dbg_do_set_linetrace
      body: 
        (BraceGroup
          children: [
            (C {<typeset>} 
              {<Id.Lit_VarLike 'onoff='> 
                (braced_var_sub
                  token: <Id.VSub_Number 1>
                  suffix_op: (suffix_op.Unary tok:<Id.VTest_ColonHyphen ':-'> arg_word:{(SQ <off>)})
                )
              }
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$onoff')}
              arms: [
                (case_arm
                  pat_list: [{<on>} {<1>}]
                  action: [(C {<_Dbg_write_journal_eval>} {(DQ <'_Dbg_set_linetrace=1'>)})]
                  spids: [140 146 156 -1]
                )
                (case_arm
                  pat_list: [{<off>} {<0>}]
                  action: [(C {<_Dbg_write_journal_eval>} {(DQ <'_Dbg_set_linetrace=0'>)})]
                  spids: [159 165 175 -1]
                )
                (case_arm
                  pat_list: [{<d>} {<de>} {<del>} {<dela>} {<delay>}]
                  action: [
                    (C {<eval>} {(DQ ($ Id.VSub_DollarName '$_seteglob'))})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobNEqual
                                          left: {($ Id.VSub_Number '$2')}
                                          right: {($ Id.VSub_DollarName '$int_pat')}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<_Dbg_msg>} {(DQ <'Bad int parameter: '> ($ Id.VSub_Number '$2'))})
                            (C {<eval>} {(DQ ($ Id.VSub_DollarName '$_resteglob'))})
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [206 220]
                        )
                      ]
                    )
                    (C {<eval>} {(DQ ($ Id.VSub_DollarName '$_resteglob'))})
                    (C {<_Dbg_write_journal_eval>} 
                      {(DQ <'_Dbg_linetrace_delay='> ($ Id.VSub_Number '$2'))}
                    )
                  ]
                  spids: [178 196 261 -1]
                )
                (case_arm
                  pat_list: [{<e>} {<ex>} {<exp>} {<expa>} {<expan>} {<expand>}]
                  action: [
                    (C {<typeset>} 
                      {<Id.Lit_VarLike 'onoff='> 
                        (braced_var_sub
                          token: <Id.VSub_Number 2>
                          suffix_op: 
                            (suffix_op.Unary
                              tok: <Id.VTest_ColonHyphen ':-'>
                              arg_word: {(SQ <on>)}
                            )
                        )
                      }
                    )
                    (command.Case
                      to_match: {($ Id.VSub_DollarName '$onoff')}
                      arms: [
                        (case_arm
                          pat_list: [{<on>} {<1>}]
                          action: [(C {<_Dbg_write_journal_eval>} {(DQ <'_Dbg_linetrace_expand=1'>)})]
                          spids: [308 314 324 -1]
                        )
                        (case_arm
                          pat_list: [{<off>} {<0>}]
                          action: [(C {<_Dbg_write_journal_eval>} {(DQ <'_Dbg_linetrace_expand=0'>)})]
                          spids: [327 333 343 -1]
                        )
                        (case_arm
                          pat_list: [{<Id.Lit_Star '*'>}]
                          action: [
                            (C {<_Dbg_errmsg>} 
                              {
                                (DQ (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) 
                                  <expand> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <', '> 
                                  (word_part.EscapedLiteral
                                    token: <Id.Lit_EscapedChar '\\"'>
                                  ) <on> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' or '> 
                                  (word_part.EscapedLiteral
                                    token: <Id.Lit_EscapedChar '\\"'>
                                  ) <off> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' expected.'>
                                )
                              }
                            )
                          ]
                          spids: [346 348 369 -1]
                        )
                      ]
                    )
                  ]
                  spids: [264 286 375 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (C {<_Dbg_errmsg>} 
                      {
                        (DQ (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <expand> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\"'>
                          ) <', '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <on> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\"'>
                          ) <' or '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <off> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\"'>
                          ) <' expected.'>
                        )
                      }
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [379 381 -1 407]
                )
              ]
            )
            (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
        )
    )
  ]
)