Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug on Mac?

3 REPLIES 3
Reply
Message 1 of 4
hongyuj
467 Views, 3 Replies

Debug on Mac?

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.

3 REPLIES 3
Message 2 of 4
cyrille.fauvel
in reply to: hongyuj

Hi

 

Haven't you tried xcode?

Message 3 of 4
hongyuj
in reply to: hongyuj

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

Message 4 of 4
cyrille.fauvel
in reply to: hongyuj

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)

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report