Singular Manual: dbprint

  | ### 5.1.17 dbprint `Syntax:` `dbprint (` int_expression`,` expression_list `)` `Type:` none `Purpose:` applies the print command to each expression in the expression_list if int_expression is positive. `dbprint` may also be used in procedures in order to print results subject to certain conditions. `Syntax:` `dbprint (` expression `)` `Type:` none `Purpose:` The print command is applied to the expression if `printlevel>=voice`. `Note:` See Libraries, for an example how this is used for displaying comments while procedures are executed. `Example:`
        int debug=0;
        intvec i=1,2,3;
        dbprint(debug,i);
        debug=1;
        dbprint(debug,i);
      ==> 1,
      ==> 2,
      ==> 3
        voice;
      ==> 1
        printlevel;
      ==> 0
        dbprint(i);
See Debugging tools; print; printlevel; voice.

User manual for Singular version 4.4.1, 2025, generated by texi2html.