Debugging in Web

Hi,

How to debug lotus script agents on web??Supponse i am writing an agent and calling it through webqueryopen event,

how can i debug the agent??

Subject: Debugging in Web

Check this article;Debugging LotusScript Agents - Article - CodeStore

Also look at the agent logger project on OpenNTF.org

Subject: RE: Debugging in Web

The first approach would usually be to enable and use the remote debugger, I think.

Subject: Debugging in Web

Normally I make good use of the print (prints the output to the browser) and msgbox (outputs to the domino server console) statements. I never had to use any debuggers etc even for the most complex lotus script agents. For WQO you’ll have to use msgbox as you won’t be able to print to the browser.

HTH

Sai

Subject: RE: Debugging in Web

Do you have a rough figure how much time you spent, adding and removing print and msgbox statements, when simply ticking the agent’s “Allow remote debugging” checkbox would have given you access to all you need to know?

Do you use print and msgbox instead of the LS Debugger for Notes client development, too?

Just curious …

Subject: RE: Debugging in Web

I never(or most of the times) got the remote debugger working. Even if it works I don’t care. The reason is I don’t write 1000 lines of code and then start to debug it. I’m pretty much comfortable with print and msgbox statements, because it’s more consistent and reliable. It’s just become a habbit to debug on the web this way. I didn’t at any point in the past 8 years or so, felt that I’m wasting time in debugging my web agents this way.

“Do you use print and msgbox instead of the LS Debugger for Notes client development, too?”

And if you’re so curious about my lotus script debugging technique, I don’t use the debugger that frequently and when I use that means there’s some serious debugging involved.

FYI

Subject: RE: Debugging in Web

“I didn’t at any point in the past 8 years or so, felt that I’m wasting time in debugging my web agents this way.”

Lucky you. As the remote debugger is available for only little more than 5 years, it might have caused you 3 years of frustration otherwise. You also might be delighted to hear, that I never got the remote debugger to fly on a Linux server (tried on two occasions only), but on Windows machines it’s always been a piece of cake.

“And if you’re so curious about my lotus script debugging technique, I don’t use the debugger that frequently and when I use that means there’s some serious debugging involved.”

It’s generous of you to share that knowledge. I just hope you are not implying, that only bad programmers need a debugger.