These routines may be used to examine and copy parts of the command buffer:
dbgetchar – returns a pointer to a particular character in the command buffer.
dbstrlen – returns the length of the command buffer.
dbstrcpy – copies a portion of the command buffer to a program variable. This routine is particularly valuable for debugging, because it can tell you exactly what was sent to the server.