Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug in .rs file with RenderScript?

I want to add some log in fall.rs (in:packages\wallpapers\Basic\src\com\android\wallpaper\fall). And the code is like this:

int root(void) {

rsDebug("===========root==================",0);
rsgClearColor(0.f, 0.f, 0.f, 1.f);
...

}

But my device can't print any log when I set live wallpaper. Although there are many examples about "rsDebug", but I can't find what's wrong when I use "rsDebug".

like image 559
Sea turtle Avatar asked Oct 29 '25 10:10

Sea turtle


1 Answers

What kind of device is this (and what version of Android is it running)? Also, rsDebug logs at the "D" (Debug) level, so if you are filtering logcat, you might just not be seeing it. Do you see any messages tagged as "D"?

like image 118
Stephen Hines Avatar answered Oct 31 '25 02:10

Stephen Hines



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!