キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/3
3,129件の閲覧回数
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 件の賞賛
メッセージ2/3
3,124件の閲覧回数
Samuel,

See my comments on your other post.
0 件の賞賛
メッセージ3/3
3,102件の閲覧回数