LotusScript Debugger not running

I’m trying to debug an very simple action written in LotusScript, but the debugger won’t start, even though I have it on. Does the debugger not work with LotusScript Actions?

Here’s my code:

Sub Initialize

Dim ws As New NotesUIWorkspace

Dim uidoc1 As NotesUIDocument

Dim uidoc2 As NotesUIDocument

Dim company$

Dim ticker$

Set uidoc1 = ws.CurrentDocument



company = uidoc1.FieldGetText("compname")

ticker = uidoc1.FieldGetText("ticker")



Set uidoc2 = ws.ComposeDocument("","","Contact")

Call uidoc2.FieldSetText("compname",company)

Call uidoc2.FieldSetText("ticker",ticker)

End Sub

TIA for any insights.

Subject: LotusScript Debugger not running

It works, but the “on-ness” of the debugger depends on whether or not the debugger was on when the element you are trying to debug is opened. So if you’re debugging a form action, you need to turn on the debugger before opening the form.

Subject: RE: LotusScript Debugger not running

Stan,

Thanks for the quick response.

This action is run from a view. Does the same “on-ness” theory still apply. I’ve closed and re-opened the database with the debugger on the whole time and it still does not start up when I click the action.

Also, this is a shared action. Do you think that would make a difference?

Any additional thoughts?

TIA

Subject: RE: LotusScript Debugger not running

Have you got the database open in Designer?

Subject: RE: LotusScript Debugger not running

I tried it with it closed and open and got the same result. Do you think I may be running into a cache issue?

Subject: RE: LotusScript Debugger not running

why not put a message box to c if the code actually is getting executed, also can try using ‘stop’ to c if it helps.

Subject: RE: LotusScript Debugger not running

I don’t know what your problem is with the debugger, but I think I see what’s wrong the code you’re trying to debug. You shouldn’t be using CurrentDocument in a view action. There is no current document in that context. Use UnprocessedDocuments or CaretNoteID. For that matter, have you looked into the form option “Formulas inherit values…”?

Subject: LotusScript Debugger not running: Solution

I’m running a 6.02 CF1 client and ran into the same issue in a form that I knew I had used the debugger before.

In my case, I had a form with not many fields, but some seriously big view actions, created about two years ago. Today I added a new view action with maybe 100 lines of code. When I tried to run the debugger against any action in the form, it failed to kick in.

I removed one of the large actions, saved the form and tried again to run the debugger against one of the remaining form actions. It worked just fine.

My conclusion is that there was so much Lotusscript in the form actions that the new action was the straw that broke the camel’s back.