rdebug_show_statement

NAME

rdebug_show_statement(): Show worker's current stack state (applies to debugged routines only).

TYPE

Procedure

DESCRIPTION

This procedure is part of the rdebug API.

rdebug_show_statement() shows the next statement to execute on a debugging session.

This routine will show the statement on which the worker is now waiting, thus the next statement to be executed by such action as rdebug_step_into(), rdebug_step_over(), rdebug_run(), etc. rdebug_show_statement() presents with routine schema & name, the statement ID (see rdebug_show_routine_statements()) and the statement code (see rdebug_show_routine()).

SYNOPSIS

rdebug_show_statement()
  READS SQL DATA

EXAMPLES

Show next statement to be executed during a debugging session:

mysql> call rdebug_show_statement();
+----------------+--------------------+--------------+------------------------------------------------+
| routine_schema | routine_name       | statement_id | statement                                      |
+----------------+--------------------+--------------+------------------------------------------------+
| test           | analyze_continents |           98 | fetch continents_cursor into current_continent |
+----------------+--------------------+--------------+------------------------------------------------+
In the above, fetch continents_cursor into current_continent is the next statement to execute. It has statement ID 98. Compare with output of rdebug_show_routine_statements() and rdebug_show_routine().

ENVIRONMENT

MySQL 5.1 or newer

SEE ALSO

rdebug_show_routine(), rdebug_show_routine_statements(), rdebug_verbose()

AUTHOR

Shlomi Noach
 
common_schema documentation