If NDEBUG is defined you have to use the Debug version of the interpreter python_d.exe.
Furthermore if the name of the extension is myextension the name of the Dll in Release must be myextension.pyd but in Debug the name of the Dll must be myextension_d.pyd
If NDEBUG is defined you have to use the Debug version of the interpreter python_d.exe.
Furthermore if the name of the extension is myextension the name of the Dll in Release must be myextension.pyd but in Debug the name of the Dll must be myextension_d.pyd