NotesUIView unavailable in debug mode

When debugging with Notes 8.5 the handle to NotesUIView became sometimes unavailable. Eventually I was able to locate the problem, but I am unsure whether I am right. Therefore I would appreciate very much if someone could try to reproduce the problem.

You need a new database. It only contains a view and an LS agent with the following click event:

Dim ws As New NotesUIWorkspace

Dim uiview As NotesUIView

Set uiview = ws.CurrentView

If uiview Is Nothing Then

Msgbox "uiview is nothing"

Else

Msgbox uiview.View.Name

End If

Without debugging the agent returns the name of the current view. In debug mode I get the message “uiview is nothing” as soon as I have set a breakpoint in the agent (thus creating a breakpoint profile). As long as the breakpoint profile exists, uiview is nothing in debug mode. Only when I delete the profile document, uiview is available again.

Could anybody please try to reproduce the problem? Maybe s/he even has an explanation for this behaviour.

Thank you very much in advance

Ruedi