Top
Back: 3.10 Debugging tools
Forward: 3.10.2 Source code debugger
FastBack: 3. General concepts
FastForward: 4. Data types
Up: 3.10 Debugging tools
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

3.10.1 Tracing of procedures

Setting the TRACE variable to 1 (resp. 3) results in a listing of the called procedures (resp. together with line numbers). If TRACE is set to 4, Singular displays each line before its interpretation and waits for the <RETURN> key being pressed.

See TRACE var.

Example:

 
  proc t1
  {
    int i=2;
    while (i>0)
    { i=i-1; }
  }
  TRACE=3;
  t1();
→ 
→ entering t1 (level 0)
→ {1}{2}{3}{4}{5}{4}{5}{6}{7}{4}{5}{6}{7}{4}{6}{7}{8}
→ leaving  t1 (level 0)

Top Back: 3.10 Debugging tools Forward: 3.10.2 Source code debugger FastBack: 3. General concepts FastForward: 4. Data types Up: 3.10 Debugging tools Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.