MATLAB: Debugging a callback function

callbacksdebuggingguiMATLAB

Hi, I am trying to produce a code that plots certain information in a gui figure so that the user can make a decision, based on the plot, which function to execute next. The functions are executed by buttons on the gui figure. As the functions are triggered by callbacks if I try to debug as normal I am not able to access the function. How can I get into the function to find my error?
Thanks

    >> dbstop if error