How to debug maya gltf exporters

  1. I’ve set the debug output folder to C:\Program Files\Autodesk\Maya2023\bin\plug-ins.
  2. I’ve generated the DLL and saved it to the above-mentioned folder.
  3. In the debug panel, I choose to start the external program, which is C:\Program Files\Autodesk\Maya2023\bin\maya.exe.
  4. I’ve set Maya2Babylon2023 as the startup program.
  5. I’ve set a breakpoint in the code and launched a new instance. When Maya starts and displays the main menu, I open the Babylon file exporter, set the properties and start the exporting process. However, the process finishes without hitting my breakpoint.

Could anyone help me with this? I’m looking for ways to correct this issue.

Pinging @bghgary

Hey @kevinwang , what I usually do is that I launch Maya separately from Visual Studio and use the “attach to process” option for debugging. Also, make sure “Code type” option is set to “Managed (.NET Framework 4.X)”

1 Like

If you want to start from Visual Studio, it should also be possible. Just make sure to set the debugger type correctly in the settings.

Generally, if your breakpoints are not hitting in VS, hover over the breakpoint while running and it usually tells you why.