This video demonstrates how to create a MySQL stored function using JavaScript that contains debug information and how to view that debug information after using the function.
Check out this blog post for more information and examples - https://blogs.oracle.com/mysql/post/i...