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 revisionPrevious revision
Next revision
Previous revision
debugging_20techniques_20_28lbb_29 [2018/04/10 20:20] – old revision restored richardrusselldebugging_20techniques_20_28lbb_29 [2024/01/05 00:22] (current) – external edit 127.0.0.1
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.1523391650.txt.gz · Last modified: 2024/01/05 00:18 (external edit)