Debugging QuerySave and QueryClose form events

Debugging QuerySave and QueryClose form 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.


    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

This was first published in July 2003

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.