[comp.sys.hp] No line number for HP Pascal runtime errors

rick@bnrunix.UUCP (Richard Johns X7191) (08/12/89)

I'm using Pascal under HP-UX 6.5 on a series 300.

Why is it any runtime error message I get has a line number of 0, as in:

	ERROR -5 IN LINE 0. Divide by zero.

I take it I'm doing something fundamentally wrong here (besides generating
software errors :-) ), but what?  TIA, and don't tell me to RTFM.  If it's 
in there, it's hiding.

	Rick "sometimes-I-miss-C" Johns

peter@prleh3.prl.philips.nl (Peter van Hooft) (08/12/89)

In article <248@bnrunix.UUCP> rick@bnrunix.UUCP (Richard Johns X7191) writes:
>I'm using Pascal under HP-UX 6.5 on a series 300.
>
>Why is it any runtime error message I get has a line number of 0, as in:
>
>	ERROR -5 IN LINE 0. Divide by zero.
>

Try:

$debug$
program test(input, output);

etc.

Isn't that obvious ;-) ? Unfortunately, this option doesn't really debug
your code. Perhaps in HP-UX 7.0 :-)

peter.

jimb@hpfcdc.HP.COM (Jim Bigelow) (08/14/89)

Thanks for bringing this up.  I'm the person in charge of pascal on
the 300 series and I will try to have the 8.0 manual both describe
the format of error messages and how to manipulate the contents by
means of compiler directives, e.g., plainly state what info is
provided by run time error messages and that meaningful line numbers
can be produced by using the $debug$ option.

Cheers,

Jim Bigelow
Colorado Language Lab
Hewlett Packard
3404 E. Harmony Rd
Fort Collins, CO 80525