Debugging an event handler

Debugging is a regular part of any software development. Event handlers can be debugged during the development process.

For information on developing event handlers, see “Developing event handlers”.

For information on using the debugger, see Appendix C, “Debugging Logic in the Database.”.

StepsDebugging an event handler

  1. From a system command prompt, change directory to the directory holding the Sybase IQ software for your operating system.

  2. Enter the following command to start the debugger:

    dbprdbg
    
  3. In the Connect login window, enter user name and password, then click OK.

  4. In the Connections window, double click All Connections.

  5. In the procedures window, double click the event you wish to debug. The event definition is displayed in the Source window.

  6. In the Source window, set a breakpoint.

  7. From Interactive SQL or another application, trigger the event handler using the TRIGGER EVENT statement.

  8. The execution stops at the breakpoint you have set. You can now use the debugger features to trace execution, local variables, and so on.