Starts a debugger session on the current connection.
The DEBUG BEGIN statement starts a debugger session on the current connection. All other DEBUG commands are not valid until a debugger session has been started. After the successful execution of this statement, the debug related temporary tables become available on the current connection and may be examined before performing other debug related operations.
Once the debugger session is started, depending on the role of the connected user, it can be used to debug SQL scripts running on any other connections connected to the same database, or it can be used to debug any query executed on any free connection.