we use the System Variable *LINE a lot. But there is the differenz between the Editor - and the executed code in a differnent enviroment.
In NaturalOne there are the Linenr increases with 1.
With the ant-Build the Linenr increases with 10, on long modules 5 or 2.
When an error raise up in Line 2450, I can't find the Line in NaturalOne.
|Created on Brainstorm||09/20/2017 07:57 AM|
The line number can be displayed by switching on the Preference > Software AG > Natural > Editors > Source Editor > 'Text Editors'
On the dialog you may select 'Show line numbers'.
For NaturalONE, line numbering is always done based on line increment of 1. NaturalONE line numbers are different from natively line number on the server.
Regardless of a potential unusual line number in an error message or *line, there is a command in NaturalONE available to go to the correct source line.
Select from the ONE main menu Navigate > Goto Line number (see above).
Use CNTR "G" and enter the server line number. The editor will position to that line.