Author Topic: Debugging Maya Plugin (Linux + Code::Blocks)  (Read 5392 times)

kbrown

  • Guest
Debugging Maya Plugin (Linux + Code::Blocks)
« on: October 09, 2007, 01:02:59 am »
Posted this at cgtalk.com a while ago but no avail... Any help would be appreciated:


Hi,

I'm new to debuggin maya plugins so go easy on me

My plugin works just fine but I wanted to learn how to properly debug it using Code::Blocks under Linux. From what I've gathered I need to do something like this:

1. Fire up Code::Blocks and Maya as usual
2. Compile the plugin with debug info and load it into maya using the plugin manager
3. Get the PID of maya.bin using 'ps -ae|grep maya.bin'
4. In Code::Blocks choose "Debug -> Attach to process" and enter the PID

At this point Code::Blocks spits out the following and pauses maya (kinda what one would expect):
Code
Build succeeded
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Reading symbols from /usr/autodesk/maya8.5/bin/maya.bin...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libimf.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libMaya.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libIMFbase.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libiff.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libFoundation.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libCommandEngine.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libGeometryEngine.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libImage.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libExtensionLayer.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libPolyEngine.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libHWFoundation.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libHWRender.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libModelSlice.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya8.5/lib/libGLU.so.1...(no debugging symbols found)...done.
(no debugging symbols found)...done.
In ?? () ()
Debugger name and version: GNU gdb 6.5

If I now set a break point and choose "Debug -> Continue", I get this:
Code
Continuing...
(no debugging symbols found)
Error in re-setting breakpoint 1:
Program exited with code 0177.
Debugger finished with status 0

I.e. maya gets killed and the debugger quits. Am I doing something wrong?

P.S. I fire up maya using my own shell script which sets some env vars including:
MAYA_DEBUG_NO_SIGNAL_HANDLERS=1

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: Debugging Maya Plugin (Linux + Code::Blocks)
« Reply #1 on: September 06, 2014, 06:31:07 pm »
I made it work. Here is the blog:
Debugging Maya Plugin(C++) with CodeBlocks in Linux
http://www.cnblogs.com/yaoyansi/p/3959745.html

Cheers