I have a user event script that processes new sales orders with an after submit function. I developed this script using the debugger a few months ago and then released it. It has been working fine for sales orders that are created both using the Netsuite UI and our Netsuite webstore.
Yesterday, I started working on adding some extra functionality to the script. The first thing I did to begin my new development work was to change the script's deployment status to "Testing" and try to step through the script with the debugger. I ran the script in the debugger and then created a new Sales Order using the Netsuite UI. When I saved the Sales Order the script's after submit function was called and the debugger stepped into the script; exactly what I would have expected to happen.
I ran in to trouble when I created a new Sales Order by placing a test order through our webstore (as opposed to using the Netsuite UI). The debugger just kept on "Waiting for User Action" and the script's after submit function was never triggered. Also, the script's execution log showed that the script never ran.
When I changed the script's deployment status back to "Released" and tried creating a new Sales Order by placing an order through the webstore, the script's after submit function was successfully called (as evidenced by the script's execution log and changes the script made to the Sales Order).
In summary, my problem is that when my script is running in the debugger I cannot trigger it with the creation of a Sales Order through the webstore. When the script's deployment status is set to Released, however, it is successfully triggered by the creation of a Sales Order through the webstore.
This is a problem for me because I want to add new functionality to the script that applies to webstore-created Sales Orders. Developing this new functionality will be very difficult if I cannot test and debug it using the debugger.
What I want to know is "How can I get my user event script to be triggered by webstore-created Sales Orders when the script is running in the debugger?"
I would be very grateful for any insight into this frustrating problem.