Manage Learn to apply best practices and optimize your operations.

Debugging QuerySave and QueryClose form events

How to avoid skipping over the default LS debugger when debugging the LotusScript QuerySave and LotusScript QueryClose events.

View expert feedback to this tip.

Ever tried to debug the LotusScript QuerySave and LotusScript QueryClose events? If so, you'll know that the default LS debugger is simply skipped over (very annoying). Therefore, you have to create an action or button, etc. to debug this code (painful).

Instead try this: Simply place the "stop" function at the start of the QuerySaveclose code.

When executed, the event will automatically stop and pass you to the LS debugger. Simply remove the "stop" when you are finished debugging.

EXPERT FEEDBACK TO THIS TIP

If you press the Continue button during (let's say) the Queryopen event, the debugger will not stop at the beginning of other events. However, if a user hits Step Exit instead, the debugger will continue to pause at the beginning of each event. In addition, if the developer is concerned that it might not stop, it's just as easy to set a breakpoint instead of putting in a Stop statement.

ND6 will pause for debugging at the start of each event even if you did use Continue. See Debugging LotusScript for more information.


Do you have comments of your own? Let us know.


Dig Deeper on LotusScript

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close