I have a mysql function, i want to debug it, set breakboints, see variables values on that time period etc. How to do it ?
From my current search so far (though I might have missed something) I have to agree with Devart that you cannot debug UDF functions.
One extra advice to give you is to use the stderr for debugging. I've crafted something rather simple to work with:
void udf_debug( char *msg, ... ) {
#ifdef DEBUG
va_list ap;
va_start(ap, msg);
vfprintf(stderr, msg, ap);
va_end(ap);
fflush(stderr);
#endif
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With