LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging on Mac

hi all,

I am trying to debug a MacOS Framework (in Windows, this is like a DLL). On a WindowsPC, I compiled my C++-Code into a DLL (debug on) and then chose LabView in Microsoft Visual C++ to connect to LabView and debug my DLL (which is called by a LabView-VI). This worked perfectly for me. Now trying to do the same with mac. Created a framework (debug on), chose LabView as Application and run it... but with MacOS (using XCode and GDB as debugger), it doesn't work. The breakpoints defined in my XCode-Code are found by GDB, if a breakpoint is hit, LabView waits and doesn't continue with the LV-Code. But I get a GDB-Error: Previous frame inner to this frame (could not unwind past this frame). Can't get any access to local variables in C++, so I can't really debug my code. The only solution is to switch back to Windows to find errors - but that's very annoying. Somebody can explain this error message or tell me where to look for a fault / tell me what to do? 

 

Thanks in advance

 

Christian 

 


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 1 of 3
(2,921 Views)
Hi Christian, is it possible for you to publish here the DLL and the Framework? It would help to try to reproduce the issue Best regards. Andrea P.
0 Kudos
Message 2 of 3
(2,846 Views)

Hi Christian,

 

This can occur  when you don't have enough stack frames between the current frame and gencode. Try setting the breakpoint a couple of lines deeper or a couple of functions deeper in the code - not on the top level function. Please post if this makes a difference.

 

Regards,

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Message 3 of 3
(2,830 Views)