Hi Arne,
There are multiple ways to apply debug statements in your code.
Most simple way to check your code is to use of
1) System.out.println(" some text here.. "); in between your method-body and out of the method. (So that you know where your code get stuck, if your System.out.println statements don't get printed on the console. you get an idea where your code not get executed.) As an example:
@SimpleFunction(discreption = " Gibt die Grobe en......long aus ")
public long GetFileLength( String path) {
System.out.println(" Inside the GetFileLength() method " );
File file = new File(path);
System.out.println(" code line containing ... File file = new File(path); .... got executed " );
return file.length;
System.out.println(" code line containing ... return file.length; .... got executed " );
}
System.out.println(" out of the GetFileLength() method " );
2) You can use the Debugging with Logcat (take a look at this
video tutorial to get an idea of Logcat).
Good Luck
best,
Thilanka