home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / debug < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.2 KB  |  34 lines

  1.     
  2.     _D_e_b_u_g _a _f_u_n_c_t_i_o_n
  3.     
  4.          debug(fun)
  5.          undebug(fun)
  6.     
  7.     _A_r_g_u_m_e_n_t_s:
  8.     
  9.              fun : any interpreted R function.
  10.     
  11.     _D_e_s_c_r_i_p_t_i_o_n:
  12.     
  13.          These functions set and unset the debugging flag on a
  14.          function.  When a function flagged for debugging is
  15.          entered, normal execution is suspended and the body of
  16.          function is executed on statement at a time.  A new
  17.          browser context is initiated for each step (and the
  18.          previous one destroyed).  Currently you can only debug
  19.          functions that have bodies enclosed in braces.  This is
  20.          a bug and will be fixed soon.  You take the next step
  21.          by typing carriage return, n or next.  You can see the
  22.          values of variables by typing their names.  Typing c or
  23.          cont causes the debugger to continue to the end of the
  24.          function.  You can debug new functions before you step
  25.          in to them from inside the debugger.  If you have vari-
  26.          ables with names that are identical to the controls
  27.          (eg. c or n ) then you need to use print(c) and
  28.          print(n) to evaluate them.
  29.     
  30.     _S_e_e _A_l_s_o:
  31.     
  32.          browser.
  33.     
  34.