[Next try. (HTML destroyed the commands last time...)]
This way the menu item shows the current debug state:
8
Toggle Debug Mode ON
#91=BN BS(BF) RS(91,'Toggle Debug Mode') RI(124,BEGIN) if(#90==12345){#90=0 R("|<|@(91)|Y|>","|@(91) ON")}else{#90=12345 R("|<|@(91)|Y|>","|@(91) OFF")} RE(91) BoF RC(124,ALL) BQ(OK) BS(#91)
(The 3rd line with the commands must be ONE single line of course!!)
Christian