Question

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:

On SE, I have read the following suggestions:


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)
Était-ce utile?

La solution

Usually, putting the pdb in the same folder will always work - however, the times where this doesn't is usually because your dll is being loaded from elsewhere in the path and its not actually running the dll you think it is (at least, that's what happens to me).

Once your app is running, try and delete the dll - if you can, its not loaded. Or you can look at the path in the modules window in VS. That will also give a clue to why its not loaded and give you the option to manually load symbols from anywhere on disk.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top