Page 1 of 1

Is there a way to reference a program line?

Posted: Wed Aug 31, 2022 1:49 pm
by dravenous
Hi I'm looking for something that will paste the line number in a logmsg. I've been manually doing "logmsg Line X" but would love if there's some sort of @line command I'm not aware of because if I write additional program lines obviously my manually entered "Line X" will be incorrect. Mostly for debugging code.

Thank you!
DR

Re: Is there a way to reference a program line?

Posted: Wed Aug 31, 2022 3:26 pm
by EViews Gareth
There isn't :(

Re: Is there a way to reference a program line?

Posted: Thu Sep 08, 2022 5:50 pm
by EViews Jason
With the latest EViews 13 patch, in addition to the 'program' option to logmode.

Code: Select all

logmode program
you can add the options 'file', 'filepath' and/or 'linenum', where:

'file ' will prepend the filename of the program to the program line
'filepath' will prepend the filename and path to the program line
'linenum' will prepend the line number of the program line

For example,

Code: Select all

logmode program linenum file
will enable program line logging and include the file name and line number with each log entry.