Enabling debug mode
Created by: siebenkopf
When I write C++ code, I couldn't find an option to enable DEBUG mode. Specifically, I want to write some 'assert' statements, which should be checked in debug mode.
There is the option parameter "extra_compile_args" in the setup.py, but even after setting 'extra_compile_args = ["-ggdb"]', the assertion
assert (1 == 2);
passes. I think, this is due to the fact that by default the '-DNDEBUG' macro is enabled, which disables 'assert' to be evaluated.