I've been going NUTS trying to figure out why the debugger would ignore my breakpoints when breaking into the second event raised for a UE script.
Here's the deal: I have a UE script with BeforeSubmit and AfterSubmit events defined. When I spin up the debugger and save a record here's what happens:[LIST=1]
[*] The debugger breaks on the BeforeSubmit event - fine, that's expected. While it's there I go ahead and slap a break point inside my AFTERSUBMIT handler body.
[*] I let it run through and return and it then breaks on the AfterSubmit
[*] I let it continue thinking it will hit my breakpoint but it doesn't, it completes and returns.[/LIST]WTH?!
After messing around for over an hour I realized that you need to create breakpoints EACH TIME THE DEBUGGER BREAKS - even though you can see breakpoints that were set in previous event they WILL NOT be respected. If you click to clear and then recreate the debugger will stop as it should.
I'm not posting a bug, it will be WAAAAY too painful to explain this to support and justify it. I just wanted to post it here so if anyone else has experienced this you will know how to deal with it. It would be nice if Yang or someone else from NetSuite who hangs here went ahead and created an issue or whatever.
Good luck!