I'm trying to debug some of the examples provided in the Maya API SDK.
Building the DLL with Visual Studio 2010 in debug mode worked fine, and the plugin, once loaded into Maya, worked fine. However after attaching, Visual Studio complains about cannot find or open the PDB file. I ignored those warning and set some break points, but clearly VS does not break.
Regarding building plugins and debugging by attaching them to Maya, I've read:
- https://alliance.seas.upenn.edu/~cis660/wiki/index.php?title=Debug_CPP_Plugin
- http://devmaster.net/forums/topic/6965-how-to-debug-a-plugin/
- http://www.creativecrash.com/forums/api/topics/help-33-how-do-i-debug-my-plugin
On SE, I have read the following suggestions:
- Why is Visual Studio 2010 not able to find/open PDB files?
- PDB does not match image Error
- Visual Studio 2010 "Cannot find or open the PDB file"
In particular, I tried:
- making sure that the plugin that I am loading into Maya is the one that I just built;
- verifying that the PDB has the same name, is in the same folder, has been created at the same time than the DLL;
- loading manually the PDB ("A matching symbol was not found");
- activating the Symbol Server in VS (fine, but I got only the Microsoft ones obviously)