Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 792 Bytes

File metadata and controls

37 lines (30 loc) · 792 Bytes

mysql_pr_fn_debugger

A debugger to MySQL procedure and functions. RAISE NOTICE '???'

Installing

mysql -uroot -proot < mysql_pr_fn_debugger.sql

Example call log

create procedure run_parallel(
  in cores int
) 
begin
    call debug._log('run_parallel', concat('cores: ', cores));
    call debug._xlog(concat('without identified, cores: ', cores));
end;
call run_parallel(8);

Example show logs

call debug._show();

#	proc_id             debug_text                      created_at
1	run_parallel        "cores: 8"                      2020-05-21 16:42:19.0
2	proc_id_undefined   "without identified, cores: 8"  2020-05-21 16:42:19.0

Example cleanup logs

call debug._cleanup();
call debug._show();

#	proc_id	debug_text	created_at