Here’s a little trick to allow Charles Proxy to debug your Adobe AIR AMF-based applications whilst developing on your localhost.
Open up your “hosts” file in a text editor:
Windows
Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts
Windows XP Home c:\windows\system32\drivers\etc\hosts
Linux
/etc/hosts
Macintosh OS X
Finder -> Go -> Go to folder
search for /etc
Open up “hosts” in your text editor.
Add the domain “localhost.” to your 127.0.0.1 line, (Note the fullstop!), it should now read something like:
127.0.0.1 localhost localhost.
Save & close. (You may need to restart your local server).
Now in your AIR application, instead of pointing your remoting service to something like “http://localhost/myService” change it to “http://localhost./myService” and you should see your remoting calls coming up in Charles. Happy days!




Do you know why this is necessary? Can’t Charles listen without this?
THANK YOU!
This really helped me, I was close to giving up on Charles and AIR apps.
Thanks a lot for this tip you save my day