I have spent the last couple years almost exclusively in XPages, but just recently needed to go back to do some LS development. When running the LS debug I find that the line after the highlited line is the line that is executed. as I remember the highlited line was the line that was executed when you clicked step over or step into. I have found this to be very confusing because it is always one step in front of me and the line of code that was executed is not shown on the screen.
Is my memory off or is there a setting to change this behavior?
Subject: seen this before
For me, it was always a memory issue
Windows didn’t have enough free memory to correctly draw the screen
Closing down everything, then starting afresh with just Notes client & designer fixed it
Subject: hey bill, couple of things you could check
Do you have any “on error goto xxx” lines? Look for any colons in this line (or any goto line). The colons are permissible syntax, but the debugger or the compiler misunderstands them and misfits their line numbers.
There’s another issue: watch for blank lines mismatching at the start of each function call. Characters (tabs, spaces, sometimes it’s just lines) added outside any function, but not commented out, can throw off the line numbers in debug. Sometimes you can find these issues by just watching where the code editor thinks it is – its first line.