Debugger doesn't start on save

I have an agent that creates a form and “gives” it to the user to fill out. In the Post save event I have this code

Msgbox "PostSave Event - prior to email call"

Call emailpassword

Msgbox "Post Save Event - After email call"

Similarly, I have a msgbox in the emailpassword code

The code is running (but not working)- but the debugger is not coming on to help me figure it out- is this possiby a back end/front end issue? BTW, the debugger works for the agent that presents the form to the user-

Ideas?

Subject: debugger doesn’t start on save-yes it does but…

I just did a quick test (and seem to recall this from some stuff that’s happened to me before) and you can’t debug agents called by PS (or QS).

The test I did sent an email to me. I called the agent from both the QS and PS events and got 2 emails. With the debugger on, the code doesn’t drill down into the agent called by the QS or PS code.

I think to debug this kind of code, you need to do things like email yourself or write out files with debug information.

If anybody has different info, I’d love to know how to make this work.

Subject: RE: debugger doesn’t start on save-yes it does but…

Well, I have lots of code in PS and QS events and have not had this problem- those documetns aren’t created by agents- but, this is a document that gets placed on the users screen, they have to fill out and save- I have it working now though. I just have to go through and take out a dozen msgbox statements. :(Tom

Subject: RE: debugger doesn’t start on save-yes it does but…

Doug,

The way I usually do it is to create the form manually and then run the PostSave event.

I missed the part where he was creating this with an agent. No way to invoke the debugger when you do that, to my knowledge.

brandt

Subject: debugger doesn’t start on save

Are you starting the debugger before or after you enter the database?

brandt

Subject: RE: debugger doesn’t start on save

Before- the debugger is one as the I click the button to build “Form A” - it does not come back on as I go to save it- BUT, the MSGBOX prompts in the PostSave event And the email password function both happen- the debugger is just not coming back on.

Subject: RE: debugger doesn’t start on save

have you tried to set a breakpoint in your PostSave event when the debugger kicks off?

brandt