Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Linemarks in Basic+
Whenever I'm debugging old Basic+ code, there are times when the current line that I'm on is sometimes off by 1 or 2 lines (The worst I've seen it was 8 lines). I finally just noticed a variable in some of these programs written as "LINEMARK" not being initialized to anything by our previous programmer. I'm not sure what the goal of a LINEMARK is since I'm still somewhat new to this environment and could use some help understanding what this means...and if its related to my issue regarding debugging lines being offset.
Comments
The lines can be off when debugging if the source code and object code are not compatible. In other words, you're using a system where the sysprocexe was deployed to, but not the sysproc itself.
What happens in that case, is the debugger is stepping line by line through the object code but you're seeing the corresponding line of the source. If you recompile the source, the debugger will line up again but you'll also lose whatever the object code was, which was likely the more recent version of the code.
Of course it could be the other way around as well where the deployment had source but missed the exe so recompiling the source would be the correct thing to do.