Copy link to clipboard
Copied
I am unable to get remote debugging working for Air for Android using the HTC Desire. USB debugging is enabled on the phone, I have disabled the firewall, entered my ip address, but it still does not connect.
Has anyone else experienced this problem and have a solution.
Cheers
Copy link to clipboard
Copied
This can be occurring due to any of the following reasons:
1. Your application xml doesn't have INTERNET permissions (it is needed for wifi device debugging).
2. Your desktop isn't accessible from your device (try accessing it from HTC browser).
3. If you are on windows 7, you haven't disabled all 3 firewall settings.
If you have a Droid or Nexus One can you please try this on that too (this is just to see if it works for you even on supported devices).
Let us know if you still see the issue after checking up on all these things.
regards
syed
Copy link to clipboard
Copied
I just figured out how to do this yesterday:
AS3 CODE |
---|
private static constant Q:String = "~ "; trace (Q + "Your trace statement " + anyOtherVarsHere); |
You can use any non-reserved, valid characters in logcat. I used ~ in my example. Hope this helps!
Adb logcat is used by many Android developers to see log data coming from your phone. But, it will print EVERYTHING. Try typing in "adb logcat" and see what happens in the command window. Not a pretty sight, huh? So, to make debugging a lot more manageable, we pipe all the data coming from logcat into grep, which allows us to filter what's actually printed to the screen.
More info on adb logcat here: http://developer.android.com/guide/developing/tools/adb.html
More info on grep here: http://sourceforge.net/projects/gnuwin32/forums/forum/74807