Codeunit name in Message

Hi all, I don’t know if this is possible, but i would like to build a routine that sends a message that contains the codeunit name where it crashes, for debugging purposes, we are now using the decode.seterror, but i would like to know if it is possible in another way.We are developing for the web, and it’s kinda hard to find out where it went wrong that way… Thanks for your time, Robin

Hi Robin, It is possible to start the program with the debugger set to active but the option brakepoint on triggers OFF. When your program runs into an error the debugger is shown and you can see the name of the codeunit in the title bar. Yorick