Domino/Notes Version: 14.0FP4
Add-on Product (if appropriate, e.g. Verse / Traveler / Nomad / Domino REST API):
Its Version:
Operating System: Win 11
Client (Notes, Nomad Web, Nomad Mobile, Android/iOS, browser version): Notes
Problem/Query:
< PR # SODY7NRJES fixed in 8.5.1 release
SPR# SODY7NRJES - Prior to the fix, the LotusScript debugger did not always show values for Current.Document and CurrentDatabase for the UIWorkspace class. Now,when the LotusScript debugger executes code in an environment where CurrentDocument and/or CurrentDatabase are valid, the debugger will show the correct values for those properties.>
This is back in Version 14. Debugging LotusScript Code is temperamental at best at worst is fails.
This simple code in an Action button or hot spot will run fine in the Notes Client. But when the Debugger is on the Code fails at Set doc = uidoc.Document
Messagebox "hello" , MB_OK , "test"
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIdocument
Set uidoc = ws.CurrentDocument
Dim doc As notesdocument
Set doc = uidoc.Document ' <--- Object not set when debugging
Messagebox "hello 2" & Doc.Form(0) , MB_OK , "test"
This is a right PIA when we need to debug code further down.