Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: m3 am 09.10.11 - 22:46:08

Titel: Neu in 8.5.3 - Lotusscript im NSD
Beitrag von: m3 am 09.10.11 - 22:46:08
http://www-01.ibm.com/support/docview.wss?uid=swg21499034&myns=swglotus&mynp=OCSSCVRGU&mynp=OCSSKTMJ&mync=E

There is a new feature in Notes/Domino 8.5.3 that tracks LotusScript call stacks as they execute on the client or server, and allows NSD to dump the recorded stacks.

1. Place the following entry in your notes.ini:


      DEBUG_LS_DUMP=1


2. Restart the Lotus Domino server or Notes client.

When enabled, an NSD dump will include a LotusScript Interpreter section like the following, which shows a stack trace for all LotusScript that was running at the time NSD was called, for all threads in all Notes/Domino processes.
Code
LotusScript Call Stack
<@@ ------ LotusScript Interpreter -> Call Stack for [ nlnotes:  0ef8:  1494]  (Time 10:38:14) ------ @@>

[3] COUNTVIEWS
[2] GETDBINFO @ line number 7
[1] COUNTDOCUMENTS @ line number 12
[0] INITIALIZE @ line number 2
Zitat
The stack can be read as follows:
      Sub Initialize was at line 2, which called CountDocuments
      Sub CountDocuments was at line 12 when it called GetDbInfo
      Sub GetDbInfo called CountViews from line 7
      There was a crash in CountViews

Note: LotusScript built-in functions such as Instr(), Ubound(), etc, do not appear in the call stack

Also note: Hidden design elements will appear in the LotusScript stack dump