willyrgf / mysql_pr_fn_debugger

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:SQL 100.0%