LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

debugging into a callback function

How can I debug into a callback function. when I set a breakpoint in the callback function, I never reach this breakpoint when I execute my programm. I want to see if the code in the callback function is ok.
regards samuel
0 Kudos
Message 1 of 3
(3,028 Views)
Hi Samuel!

   You can set breakpoints into callback functions, of course.  If during debug, you never reach the breakpoint, maybe your callback is never called! Check for this....

   In labWindows, differently from other IDEs (some Redmond IDE....), you can also put a breakpoint at the very beginning of it, that is:

   /*breakpoint here ----> */  int CVICALLBACK print (int panel, int control, int event,
                                                    void *callbackData, int eventData1, int eventData2) 
                                                   {
                                                     if( event==EVENT_COMMIT ) {
                                                    SetWaitCursor (1);
                                                     etc....

so that when you press "print" button, you can see passed parameters!

Hope it helps!

graziano

0 Kudos
Message 2 of 3
(3,023 Views)
Samuel,

See my comments on your other post.
0 Kudos
Message 3 of 3
(3,001 Views)