Debug on Mac?

Debug on Mac?

hongyuj
Explorer Explorer
699 Views
3 Replies
Message 1 of 4

Debug on Mac?

hongyuj
Explorer
Explorer

I am wondering how to debug plugins on mac. Before I run maya -d gdb on linux. It works well. But I could not have it worked on mac. Does my student version maya cause this issue.

 

Thank you.

0 Likes
700 Views
3 Replies
Replies (3)
Message 2 of 4

cyrille_fauvel
Autodesk
Autodesk

Hi

 

Haven't you tried xcode?

0 Likes
Message 3 of 4

hongyuj
Explorer
Explorer

Not yet. It seems that only xcode can debug the maya plugin, right?

0 Likes
Message 4 of 4

cyrille_fauvel
Autodesk
Autodesk

On Linux, Maya is a shell script that sets up the environment to run, it explicitly checks for -d  and then runs the executable maya.bin under the given debugger. Whether that is gdb, ddd, valgrind, idb or whatever is given.

 

On Mac, Maya is the actual binary. To run under gdb, its the other way round 'gdb Maya.app/Contents/MacOS/Maya'. But Xcode should jsut work fine, but as with Xcode 5, Apple do not ships gdb, you need ot use ~/.lldbinit  (and settings set target.inline-breakpoint-strategy always)