| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Complete Alpha Listing >====== #DEBUG (toggle debug generation) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[ cycle cycle to top of loop .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ declare declare a user defined symbol .htm|{{btn_next_n.gif|Next page}}]] | | || **#DEBUG(** //value// **)** {{blk2blue.jpg|blk2blue.jpg}} | **#DEBUG** | Toggles debug generation on and off. | | //value// | A symbol containing zero (0) or one(1). When zero, debug generation is turned off. When one, debug generation is turned on. | The **#DEBUG** statement toggles debug generation on and off, and overrides the Debug Generation setting in the Application Options dialog. When this is checked, #DEBUG controls the specific sections to output to the text file, so the file can be restricted to a manageable size. **Example:** **#SET(%DebugSet,1)** **#DEBUG****(%DebugSet)    #!Set debug generation on** **IF Action = 1        #<;!If adding a record** **  SomeVariable = InitVariable** **END** **#SET(%DebugSet,0)** **#DEBUG(%DebugSet)    #!Set debug generation off**