Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am working on debugging my mobile application. There is a specific requirement/issue that I am having related to a drag and drop touch interface on an iPad. I am at the trial and error phase of trying to figure out how to fix this (meaning I have no idea how to fix the issue I'm seeing).

The only way I have been able to figure out how to test my app on a mobile device is to deploy it to my azure test instance because the azure compute emulator always runs sites under 127.0.0.1. This is really annoying since each deploy to azure takes 10+ minutes.

So my question is, how the heck to people do mobile development on this platform? I've have found some people suggesting I could set up a reverse proxy using fiddler to allow remote connections but so far I haven't been able to get this to work. Is there some sweet ios simulator that I haven't been able to find? Am I missing something?

share|improve this question
add comment

2 Answers

I'm not familiar specifically with the azure compute emulator, however setting up a reverse proxy should be fairly straightforward. I would suggest using nginx, you're config file should be this:

 server {
    listen 80;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
  }

*the proxy_pass should go to whatever port the emulator is running on

Ubuntu Install: sudo apt-get install nginx

Windows Install: http://nginx.org/en/docs/windows.html

share|improve this answer
    
Thanks for your help. how would you change this to work with ssl? –  Ben Jan 2 '13 at 20:27
    
Nginx has SSL support, you just need to link your certificates: wiki.nginx.org/HttpSslModule You would probably want another server block that listens on 443, so that both http and https will work. –  Sanketh Katta Jan 2 '13 at 22:31
add comment

I ended up copying/tweaking the offending code into JSfiddle from my laptop. Then I navigated to the JSfiddle on my iPad. Still a pain, but much faster than azure deploy. Helped alot!

Also this question has some helpful tips for how to debug javascript from iPad.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.