Try this thread for another person’s take on the discovery.
NDEBUG is defined by default in a Release build. However, for correct compilation, it must not be, because the Panda build provided here did not have it defined when it was built, and its presence changes the size of some key low-level structures.
Find the setting in your project properties and remove it.
David