My system is CentOS7 x64, Maya2015 x64 for Linux.

- Make sure that your project is built with flag -g

- Start Maya, and find out the process ID of maya.bin.

e.g. you can find the process ID in System Monitor. This is my screenshot, and my maya.bin's process ID is 13687.

or use this command[1]:

ps -ae|grep maya.bin

or use python command:

import os; print os.getpid()

- Feed the ID to CodeBlocks. e.g. click CodeBlocks's Menu: "Debug" > "Attach to process".

Now Maya is blocked and there is a lot of message in Debugger window.

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Attaching to program with pid:
Debugger name and version: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.-.el7
Attaching to process
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libMaya.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libIMFbase.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawMarkingMenus.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libiff.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libAppVersion.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libAnimEngine.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libCommandEngine.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libGeometryEngine.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libDependCommand.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/maya2015-x64/lib/lib3dGraphics.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/maya2015-x64/lib/libHWGL.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libHWRender.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.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libModelSlice.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/maya2015-x64/lib/libTranslators.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/maya2015-x64/lib/libQtSvg.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libGLU.so....Reading symbols from /lib64/libGLU.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/lib64/nvidia/libGL.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libXp.so....Reading symbols from /lib64/libXp.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXmu.so....Reading symbols from /lib64/libXmu.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXpm.so....Reading symbols from /lib64/libXpm.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXt.so....Reading symbols from /lib64/libXt.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXi.so....Reading symbols from /lib64/libXi.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXext.so....Reading symbols from /lib64/libXext.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libX11.so....Reading symbols from /lib64/libX11.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libm.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libirng.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libiomp5.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgcc_s.so....(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libintlc.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libpthread.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libc.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libdl.so....(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawDebugTools.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libz.so....Reading symbols from /lib64/libz.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libquicktime.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 /lib64/libtiff.so....Reading symbols from /lib64/libtiff.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXinerama.so....Reading symbols from /lib64/libXinerama.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libxml2.so....Reading symbols from /lib64/libxml2.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libAutoCam.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libPtex.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawCacheShared.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libQtXml.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libfam.so....Reading symbols from /lib64/libfam.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.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libSubdivGeom.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/maya2015-x64/lib/libadp_data-5_3.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.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libweightXML.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libUrchinSlice.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/librt.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libuuid.so....Reading symbols from /lib64/libuuid.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgthread-2.0.so....Reading symbols from /lib64/libgthread-2.0.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libglib-2.0.so....Reading symbols from /lib64/libglib-2.0.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/ld-linux-x86-.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libpng12.so....Reading symbols from /lib64/libpng12.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libfreetype.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgobject-2.0.so....Reading symbols from /lib64/libgobject-2.0.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libSM.so....Reading symbols from /lib64/libSM.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libICE.so....Reading symbols from /lib64/libICE.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXrender.so....Reading symbols from /lib64/libXrender.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libfontconfig.so....Reading symbols from /lib64/libfontconfig.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/lib64/nvidia/tls/libnvidia-tls.so.340.32...(no debugging symbols found)...done.
Reading symbols from /usr/lib64/nvidia/libnvidia-glcore.so.340.32...(no debugging symbols found)...done.
Reading symbols from /lib64/libXau.so....Reading symbols from /lib64/libXau.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libxcb.so....Reading symbols from /lib64/libxcb.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libcurl.so....Reading symbols from /lib64/libcurl.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXrandr.so....Reading symbols from /lib64/libXrandr.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libutil.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgstapp-0.10.so....Reading symbols from /lib64/libgstapp-0.10.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgstinterfaces-0.10.so....Reading symbols from /lib64/libgstinterfaces-0.10.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgstpbutils-0.10.so....Reading symbols from /lib64/libgstpbutils-0.10.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgstvideo-0.10.so....Reading symbols from /lib64/libgstvideo-0.10.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgstbase-0.10.so....Reading symbols from /lib64/libgstbase-0.10.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgmodule-2.0.so....Reading symbols from /lib64/libgmodule-2.0.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libjpeg.so....Reading symbols from /lib64/libjpeg.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/liblzma.so....Reading symbols from /lib64/liblzma.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libOGSArchive-5_3.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libNsArchive10.so...(no debugging symbols found)...done.
Reading symbols from /lib64/libssl.so....Reading symbols from /lib64/libssl.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/maya2015-x64/lib/libCg.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libCgGL.so...(no debugging symbols found)...done.
Reading symbols from /lib64/libffi.so....Reading symbols from /lib64/libffi.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libexpat.so....Reading symbols from /lib64/libexpat.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libidn.so....Reading symbols from /lib64/libidn.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libssh2.so....Reading symbols from /lib64/libssh2.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libssl3.so...Reading symbols from /lib64/libssl3.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libsmime3.so...Reading symbols from /lib64/libsmime3.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libnss3.so...Reading symbols from /lib64/libnss3.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libnssutil3.so...Reading symbols from /lib64/libnssutil3.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libplds4.so...Reading symbols from /lib64/libplds4.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libplc4.so...Reading symbols from /lib64/libplc4.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libnspr4.so...Reading symbols from /lib64/libnspr4.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgssapi_krb5.so....Reading symbols from /lib64/libgssapi_krb5.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libkrb5.so....Reading symbols from /lib64/libkrb5.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libk5crypto.so....Reading symbols from /lib64/libk5crypto.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libcom_err.so....Reading symbols from /lib64/libcom_err.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/liblber-2.4.so....Reading symbols from /lib64/liblber-2.4.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libldap-2.4.so....Reading symbols from /lib64/libldap-2.4.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libselinux.so....Reading symbols from /lib64/libselinux.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libresolv.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libkrb5support.so....Reading symbols from /lib64/libkrb5support.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libkeyutils.so....Reading symbols from /lib64/libkeyutils.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libsasl2.so....Reading symbols from /lib64/libsasl2.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libpcre.so....Reading symbols from /lib64/libpcre.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libcrypt.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libfreebl3.so...Reading symbols from /lib64/libfreebl3.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/lib64/gconv/UTF-.so...(no debugging symbols found)...done.
Reading symbols from /lib64/libnss_files.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libnss_mdns4_minimal.so....Reading symbols from /lib64/libnss_mdns4_minimal.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libnss_dns.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libnss_myhostname.so....Reading symbols from /lib64/libnss_myhostname.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXfixes.so...Reading symbols from /lib64/libXfixes.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libXcursor.so....Reading symbols from /lib64/libXcursor.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgconf-.so....Reading symbols from /lib64/libgconf-.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libdbus-glib-.so....Reading symbols from /lib64/libdbus-glib-.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libdbus-.so....Reading symbols from /lib64/libdbus-.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqgif.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqico.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqjpeg.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqmng.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqsvg.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqtga.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/qt-plugins/imageformats/libqtiff.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/maya2015-x64/lib/libUIComponents.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/maya2015-x64/lib/libQtSql.so....(no debugging symbols found)...done.
Reading symbols from /lib64/libbz2.so....Reading symbols from /lib64/libbz2.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/maya2015-x64/lib/libDevices.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libDynUISlice.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libDeformUISlice.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libKinUISlice.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libProjectSlice.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libUrchinUISlice.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libOGSIOIntegration-5_3.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.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libOpenMayaFX.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/python2./site-packages/maya/_OpenMayaAnim.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/tiffFloatReader.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libcompute_node.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libcompute_service.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libcompute_runtime.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libaminobase.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libbifrostemp.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.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libaminograph.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libbasecommand.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libmwbase.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libmwdbproxy.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawBoost_thread-1_52.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawBoost_system-1_52.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libcompute_binary.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libsfkernel.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawBoost_filesystem-1_52.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/librtbase.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libagwplatform.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libbaseselection.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/liblogmanager.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libbasegraph.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libawBoost_signals-1_52.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libsolverapi.so...(no debugging symbols found)...done.
Reading symbols from /lib64/libncurses.so....Reading symbols from /lib64/libncurses.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libbuffers.so...(no debugging symbols found)...done.
Reading symbols from /lib64/libtinfo.so....Reading symbols from /lib64/libtinfo.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/plug-ins/Mayatomr.so.debug...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/abcimport.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/architectural.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/base.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/basehair.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/contour.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/layering.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/mrptex.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/paint.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/physics.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/production.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/subsurface.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/userdata.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskSeExpr.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskPartio.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskCaf.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskFabricMath.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskFabricGeom.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskSubEngine.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/mentalrayForMaya2015/shaders/../../maya2015-x64/plug-ins/xgen/lib/libAdskXpd.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/ikSpringSolver.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/ik2Bsolver.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/xgen/plug-ins/../lib/libAdskXgUI.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/xgen/scripts/xgenm/_XgExternalAPI.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/python2./site-packages/shiboken.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libshiboken-python2..so.1.2...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libpyside-python2..so.1.2...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/xgen/scripts/xgenm/ui/XgExprEditor.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/xgen/scripts/xgenm/ui/XgMessageUI.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/OpenEXRLoader.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /lib64/libgomp.so....(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/rotateHelper.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/MayaMuscle.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/matrixNodes.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libbinarizationmgr.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libinspector.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libcpptypeinjector.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libmwgrapheditor.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libmwnodebrowser.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/bifrost/plug-ins/../lib/libmwnodebrowserview.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/autoLoader.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/sceneAssembly.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/substance/plug-ins/Substance.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/substance/plug-ins/libsubstance_sse2_blend.so....(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/plug-ins/substance/plug-ins/libsubstance_linker.so....(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/OneClick.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/ArubaTessellator.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libImageDefn.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/libpcre.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/lib/python2./site-packages/maya/api/_OpenMaya_py2.so...(no debugging symbols found)...done.
Reading symbols from /usr/autodesk/maya2015-x64/bin/plug-ins/quatNodes.so...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
In poll () (/lib64/libc.so.)

Here is the message

- You have to click menu "Debug" > "Start/Continue" to let debugger go on. [1]

The Debugger window says "Continuing...", and Maya is not blocked now.

- Let's set a break point in the begining of initializePlugin(...)

and load the plugin in Maya.(My plugin is libdynamic_enum.so)

- Maya is blocked now. You have to click menu "Debug" > "Start/Continue" to let debugger go on. When you press this menu, the Debugger window will say:

In __cxa_throw () (/lib64/libstdc++.so.)
Continuing...

And here is the key:

Keep clicking the menu("Debug" > "Start/Continue") until the debugger enters your source code.

or,

Settings > Debugger > GDB/CDB debugger > Default > Disable "Catch C++ exceptions"

It doesn't matter with the environment variable MAYA_DEBUG_NO_SIGNAL_HANDLERS [2].

To let Maya not be blocked, I have to press "Debug" > "Start/Continue" not matter I create MAYA_DEBUG_NO_SIGNAL_HANDLERS or not.

- Press  menu "Debug" > "Start/Continue" to let debugger go on, and Maya will not be blocked anymore.

P.S.

Sometimes, the output window can't be shown. The output window is convenient for outputing the debug message in my plugin development(e.g. printf(...) ). Now, in order to show the debug message, I have to lanuch maya in this way which is inconvenient:

$ /bin/csh -f /usr/autodesk/maya/bin/maya

References:

[1] Debugging Maya Plugin (Linux + Code::Blocks). Thanks for this post, it gives me a lot of help.

[2] Using a debugger to debug your plug-ins

Debugging Maya Plugin(C++) with CodeBlocks in Linux的更多相关文章

  1. Tips For Your Maya Plugin Development

    (The reason why I write English blog is that I'm trying to improve my written English. The Chinese v ...

  2. Maya Plugin 编译Maya插件

    Maya自身的功能就已经非常强大了,但是更棒的是它的扩展性非常强,提供API让用户自己来编写插件Plugin.Maya的插件主要是两种,一种是用C++编写的,后缀为".mll",另 ...

  3. Automation Test in Maya Plugin Development

    现状和问题- 开发插件的功能A的时候随手建立场景, 测试插件的功能A. 测试通过后,测试场景就被丢掉.- 发现插件的功能A有bug时, 修改代码, 然后随手建立场景, 测试bug. 测试通过后,测试场 ...

  4. The J-Link hardware debugging Eclipse plug-in

    Quicklinks If you already know what are the features of the new plug-in and just want to know how to ...

  5. 如何搭建maya plugin develop environment on MAC OS X

    1.首先我使用的平台是xcode version 5.1.1 ,MAYA2015, MAX OS X 10.9.4. MAYA2015要求的是:Mountain Lion 10.8.5, Xcode ...

  6. linux codeblocks汉化

    参考window汉化codeblocks,linux下有点麻烦,就是要找到codeblocks的文件安装在哪里.一般来说,linux下安装的软件大都在/usr/share/文件夹下,所以进入/usr/ ...

  7. Maya API编程快速入门

    一.Maya API编程简介 Autodesk® Maya® is an open product. This means that anyone outside of Autodesk can ch ...

  8. Pepper plugin implementation

    For Developers‎ > ‎Design Documents‎ > ‎ Pepper plugin implementation This document provides a ...

  9. jcFeather Maya 羽毛插件

    jcFeather 2.8.6 插件持续更新地址为:http://www.jerrykon.com/jcFeather.html 和 http://www.creativecrash.com/maya ...

随机推荐

  1. 子级与父级的margin合并的问题

    子级加上了margin以后,发现其父级也移动了相应的margin值.外边距合并.换成padding;在父级上加overflow:hidden;

  2. NOIP 赛前模拟记录

    8.11 T1 给定一个序列M,求出能过构造出的序列使得(Si+Si+1)/2=Mi成立的序列个数.保证M,S递增. T2 平面点集中最大的四边形面积 T3 不太懂得一道国家队选拔的加强版. 90+2 ...

  3. 几个常见的布局的多种实现方式及margin负值总结

    第一部分:几个常见的布局实现方式 一.左右两边固定, center中间自适应未知 html代码中 center 部分首先要放在box的最前部分.然后是left,right 圣杯布局: <div ...

  4. System.Collections.Generic的各容器类的用法

    演示System.Collections.Generic的各容器类的用法. 包括:Dictionary,KeyValuePair,SortedDic tionary,SortedList,HashSe ...

  5. LPTHW 笨办法学python 40章 类

    今天读了LPTHW的第40章以后豁然开朗,原来一直愚钝,不太理解类的定义和使用,还有就是不太理解关于self的定义. class MyStuff(object): def __init__(self) ...

  6. 快速上手RaphaelJS--Instant RaphaelJS Starter翻译(二)

    (目前发现一些文章被盗用的情况,我们将在每篇文章前面添加原文地址,本文源地址:http://www.cnblogs.com/idealer3d/p/Instant_RaphaelJS_Starter2 ...

  7. Dr.com──加密方式(网页端)

    Dr.com是城市热点公司开发的宽带计费系统,可以控制网络进行管理,认证,计费,限速……许多的高校与企业都有使用. 从接触到drcom就很感兴趣(原因想必大家都懂...) drcom登陆(认证)方式又 ...

  8. c51

    ORG 0000HMOV R7,#08HMOV 83H,#01HMOV R4,#00HAA1:CLR P3.6 CLR P3.4 SETB P3.6 DJNZ R7,AA1AA2:JB P3.0,AA ...

  9. Flex 关闭浏览器

    在Actionscript 2及以前,要打开任何网址,只需调用全局函数getURL()即可.在Actionscript 3中,已经取消了getURL()这个全局函数,取而代之的是flash.net包中 ...

  10. CGGeometry类定义几何元素的结构和操作几何元素的函数。

    1.数据类型: CGFloat: 浮点值的基本类型CGPoint: 表示一个二维坐标系中的点CGSize: 表示一个矩形的宽度和高度CGRect: 表示一个矩形的位置和大小 typedef float ...