Problem in plugin debuging in wordpress

What I do, when I’m developing a plugin (or theme) on a local WordPress install and I’m feeling lazy, I just use a combination of

var_dump($my_variable); 
die; // exit; works too

This way I get an idea whats going on and I see when the variable stops being what I expect it to be.

Another thing I sometimes do is I use error_log( print_r( $my_variable, true ) ); inside functions to push stuff into the error log so that I can review it later.

Unfortunately I haven’t worked that much with custom tables so I can’t comment on those matters.

tech