Maya 2022 C++ API debugging issue

Maya 2022 C++ API debugging issue

ofir_weber
Explorer Explorer
228 Views
0 Replies
Message 1 of 1

Maya 2022 C++ API debugging issue

ofir_weber
Explorer
Explorer

I recently migrated from Maya 2019 to Maya 2022.3 and I am experiencing a problem with debugging my C++ plugin.

I use Visual Studio 2022 on a Windows 10 machine.

 

Assume I have the following line:

 

 MStatus stat = MS::kSuccess;

 

Then, assume I have "stat" defined in the debugger watch window.

When going pass this line, nothing is presented in the watch window next to the stat variable.

The value and type in the watch window are just blank. There is no initial value or even garbage.

 

If later on, I assign the return value of an API function to stat, nothing happens.

For example:

 

MSelectionList objectsList;
stat = argData.getObjects(objectsList);

 

This is extremely weird. I never bumped into such a problem with Maya or Visual Studio in general.

I obviously have optimization turned off and debug information on. This was not happening with Maya 2019.

Any idea what can be the cause? This is very annoying as I can't examine in the debugger the returned value of API function calls.

 

0 Likes
229 Views
0 Replies
Replies (0)