User Tools

Site Tools


debugging_20techniques_20_28lbb_29

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
debugging_20techniques_20_28lbb_29 [2018/04/10 20:20]
richardrussell old revision restored
debugging_20techniques_20_28lbb_29 [2018/04/17 15:44] (current)
tbest3112 Added syntax highlighting
Line 87: Line 87:
  
 For example: For example:
 +<code lb>
    ​statictext #win.debug, "Debug Line", 0, 0, 785, 17    ​statictext #win.debug, "Debug Line", 0, 0, 785, 17
    #​win.debug "!Font Arial 10"    #​win.debug "!Font Arial 10"
    #​win.debug ”a$=";​ a$; ” n=”; n    #​win.debug ”a$=";​ a$; ” n=”; n
    wait ’xxx    wait ’xxx
 +</​code>​
  
 ===== MainWin ===== ===== MainWin =====
Line 109: Line 110:
 ===== Debugging Exercise ===== ===== Debugging Exercise =====
 You have written a short program and it is working well.  You have written a short program and it is working well. 
 +<code lb>
   NoMainWin   NoMainWin
   WindowWidth = 800   WindowWidth = 800
Line 143: Line 145:
       end       end
   end sub   end sub
 +</​code>​
 However, you decide it needs a small modification. You want to add a '​Pause'​ button which will stop the counting. Clicking the '​Start'​ button will resume the counting where it left off. I've made it easy for you to add your modification. Just un'​rem'​ three lines -- one for the button, and two for its click routine. However, you decide it needs a small modification. You want to add a '​Pause'​ button which will stop the counting. Clicking the '​Start'​ button will resume the counting where it left off. I've made it easy for you to add your modification. Just un'​rem'​ three lines -- one for the button, and two for its click routine.
  
debugging_20techniques_20_28lbb_29.txt · Last modified: 2018/04/17 15:44 by tbest3112