5 % foreach my $line (split "\n", $msg)
7 <% $prefix %><% $line %><br/>
10 return if (not defined $DEBUG);
11 return if ($DEBUG < $level);
12 # no debugging in /binary as it will screw up our binary output ...
13 return if ($m->request_comp()->title =~ m{\A /binary}xms);
15 my $caller = $m->caller();
16 my $label = $caller->title();
17 my $interp = $caller->interp();
18 my $compiler = $interp->compiler();
19 my $lexer = $compiler->lexer();
21 print "<br/>wrong debug statement: $label: $msg<br/>\n"
22 if (not defined $level or not defined $label);
24 ## start debugging and set the prefix
25 ## my $prefix = "$label\[".$lexer->line_number()."]: ";
26 my $prefix = "$label: ";