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
Is there a way to reference a program line?
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13401
- Joined: Tue Sep 16, 2008 5:38 pm
-
- EViews Developer
- Posts: 870
- Joined: Tue Sep 16, 2008 3:50 pm
Re: Is there a way to reference a program line?
With the latest EViews 13 patch, in addition to the 'program' option to logmode. 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,
will enable program line logging and include the file name and line number with each log entry.
Code: Select all
logmode program
'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
Who is online
Users browsing this forum: No registered users and 1 guest