Hi,
I'm developing using NDK r7, from the command line using:
$ ndk-build
$ ant debug
$ ant installd
I noticed that assertions never get triggered.
#include "assert.h"
..
assert(0);
...
will do nothing.
Is there a way to get assertions working?
They are an extremely valuable debugging tool to me.
thx
Bram Stolk
http://stolk.org/HoverBiker/
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
I like to set up logging macros that call Android methods on Android,
normal stderr otherwise. Then make a debug static flag. Then create
wrapped Java calls. You can then toggle the logging from Java, and log
from generic (not Android specific) Java libraries. Then toggle Java
and native logging flags based on debug vs. release builds
("Debuggable" in the manifest). Plus you can only turn logging on for
certain sections of code.
sdw