Hi!
I’ve had this LotusScript debugger issue. I have a code in a form post open event with more than 1,000 lines, I just noticed that codes in the middle (lines 485 to 515) seemed not visible in the debugger.
I already tried fresh installation of my Lotus Notes Designer and client but it did not help.
Please help me solve this.
Thanks!
Subject: Help! Lotusscript debugger 7.0
Could it be that above your missing code there is a (large) string. I know that large strings with special characters can mess up your screen.
Subject: RE: Help! Lotusscript debugger 7.0
I don’t have any large strings above the missing code and don’t have any special characters. I also noticed that the other codes in other functions I’ve created seems to re-appear. I already have some revisions but the debugger displays the previous codes.
Is there any limit on how many lines of codes for a sub function?
Subject: RE: Help! Lotusscript debugger 7.0
I don’t think there is any limit on the number of lines. I can imagine that there is a limit on the total number of bytes the function uses, since it is saved in regular attributes. Normally these are called $ScriptLib and $ScriptLib_O for scriptlibraries and they are called $SCRIPTOBJ_n for other design elements.
In a scriptlibrary all the code is stored in one or more of these attributes. None of them will exceed 64000 bytes. When one attribute is going to exceed this it will be split. I suppose that there is some highwater mark, so that the split can be done at a new function. Maybe you reached an unfortunate value. You could see if it goes well when you add some extra dummy statements above the place where it goes wrong. You could add an if-statement that is always false and add there 20-50 lines of code. And see what happens now.
Subject: RE: Help! Lotusscript debugger 7.0
I received this error “Generic LSE failure” when I copied the sub in an action to the script library.
I also have this problem, previous codes without revisions seems to re-appear. I already edited it but the debugger displays the previous codes.
Subject: RE: Help! Lotusscript debugger 7.0
Ok, it looks like your code is internally mashed up. I suggest that you re-create the design elements that show errors. It is my experience that making a copy of a desing element will not get you rid of the errors. You have to re-create it. You can copy LS though by copying each function individually to a new lotusscipt library. For other design elements it will be harder, since copying all fields from a from to a new form will probably copy the error(s) too.
Alternativly you could try to export the desing elements using DXL and import them again in a new application. But this is not easy to do.
Subject: RE: Help! Lotusscript debugger 7.0
Thanks! I got it working. I recreated the design element and copied the LS into the new design.