Plugin debugging basics

Plugin debugging basics

Anonymous
Not applicable
3,403 Views
2 Replies
Message 1 of 3

Plugin debugging basics

Anonymous
Not applicable

Hi:-)
Pretty new to debugging plugins. I am debugging a maya plugin from way back 2004. I know it is working, because I have compiled and used it. The point is that I want to analyze it. I have loaded the plugin in Maya and attached maya.exe in the visual studio debugging environment. I am loading symbols from the Microsoft Symbol servers. What I am not quite sure about are all the output statements I get when I attach.....

'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\maya.exe', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\AppVersion.dll', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\Foundation.dll', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\MayaRes.dll', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.6161_none_4bf7e3e2bf9ada4c\mfc90.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\secur32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6002.18305_none_88f3a38569c2c436\comctl32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\msimg32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\Base.dll', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcp90.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\adlmint.dll', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\netapi32.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Program Files (x86)\Autodesk\Maya2010\bin\MC3.dll', Cannot find or open the PDB file
'maya.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\oleacc.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.6161_none_4bf7e3e2bf9ada4c\mfc90u.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\dhcpcsvc.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll', Symbols loaded (source information stripped).

......... It goes on like that, then finishes:

'maya.exe': Loaded 'C:\Users\eivindt\Documents\Visual Studio 2010\Projects\testMaya\Debug\TestMaya.mll', Symbols loaded.
'maya.exe': Loaded 'C:\Windows\SysWOW64\msvcp100.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Symbols loaded (source information stripped).
'maya.exe': Loaded 'C:\Windows\SysWOW64\mfc100.dll', Symbols loaded.
'maya.exe': Loaded 'C:\Windows\SysWOW64\mfc100enu.dll', Binary was not built with debug information.
The thread 'Win32 Thread' (0x1a64) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x18c4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x14f8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1914) has exited with code 0 (0x0).


Is this normal behaviour, or is there something wrong here ? I can see that the PDB(s) is/are not being found or loaded for all the Maya dll's but is that the way it is supposed to be ?
When I run the plugin I get a lot of these:
First-chance exception at 0x7710c83b (kernel32.dll) in maya.exe: Microsoft C++ exception: FNPNS::TSM::CDoesNotExistException at memory location 0x0162f334..
First-chance exception at 0x7710c83b (kernel32.dll) in maya.exe: Microsoft C++ exception: FNPNS::TSM::CDoesNotExistException at memory location 0x0162f334..
First-chance exception at 0x7710c83b (kernel32.dll) in maya.exe: Microsoft C++ exception: FNPNS::TSM::CDoesNotExistException at memory location 0x0162f334..


Can someone please enlighten me.....?

0 Likes
3,404 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

The same problem here.

Win7x64Sp1 + Maya 2015 + VisualStudio2013

Can't find OpenMayaUI.pdb

0 Likes
Message 3 of 3

Anonymous
Not applicable
That is correct output, Autodesk won't ship the pdb's (symbol files) for Maya as its commercial software. Providing you have the pdb's for the plugin you want to debug (I'm assuming that is TestMaya.mll and it says Symbols Loaded 🙂 ) you will have enough information to step through the plugin code in a debugger. Without the pdb's you can still attach and debug but you'll be looking at the assembly code. Just to be clear you won't be able to step into the Maya API calls but you will see variable states in the watch window etc.
0 Likes