home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / tcl / tcl_1 / !Peek_!Help < prev    next >
Encoding:
Text File  |  1996-03-19  |  1.2 KB  |  32 lines

  1. Peek - shade demonstration program
  2.  
  3. This is a simple debugging tool. 
  4.  
  5. The filer needs to have seen the !Tcl directory before it will run
  6. It needs RISCOS 3.1 or greater.
  7.  
  8. Select the task you want to monitor using the Tasks entry on the iconbar
  9. menu. It must be a shade task. If you started the task up after Peek
  10. it will not be in the list and you can type it in from the Open entry.
  11. The name should be given as it appears in the "Tasks" list.
  12.  
  13. A dialog box and menu should appear.
  14.  
  15. Selecting "Variables" will list the task's global variables and their values.
  16. Selecting "Arrays" will list its global arrays, keys and values.
  17.  
  18. If you type a global variable name in the writable icon and select "Trace"
  19. the value of that variable will be reported when it changes.
  20.  
  21. If you type a procedure name and select "TraceProc" the value of the
  22. arguments will be reported when the procedure is called.
  23.  
  24. If you type a command and select "Execute" the command will be executed
  25. at the global level and the result returned.
  26.  
  27. ================================================================================
  28.  
  29. The program gives a simple example of how to communicate between shade tasks.
  30.  
  31. It uses the w_send command, suitably protected by catch.
  32.