Debug php webapp that uses Google Maps API

I'm working on a PHP web application on my local server which makes use of the Google Maps API.

Executing the app from PHPStorm works fine, but when I try to debug (using XDebug) the app from PHPStorm it comes back with the dreaded "Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site" alert box and won't load the map (obviously).

Any idea why this might be happening? Debugging uses the same URL as running, only with the additional XDEBUG_SESSION_START argument in the URL.

Thanks!

5 comments
Comment actions Permalink

Hi,

Thanks for your reply!
In the links you provided I see discussions about code completion in phpStorm for the Google Maps API, but nothing about debugging and why it might not be working.
Am I missing something??

0
Comment actions Permalink

Hi,

I'll contact developers about it and update you on weekend. Thanks for understanding!

0
Comment actions Permalink

Hello again,

Do you use remote debugging/web application?
Can you try out Zero configuration debugging: http://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm .

0
Comment actions Permalink

OK, zero configuration debugging worked for me. Thanks! :)

0

Please sign in to leave a comment.