debugging drupal module imagecache with xdebug and client side php IDE

| | |

Using a PHP IDE with integrated debugger allows realtime debugging, step thru, watch, etc. in PHP. However, some things can be tricky to set breakpoints: the Drupal module imagecache is one of them.

The trick to setting a breakpoint in imagecache is to understand that it's not really the same "debug session call" as when you actually hit the page containing imagecache references. It's really the respective img src="" that calls the imagecache module that needs to invoke the debug session, so rather than trying to debug the page, try opening the url that shows in src="" and debug that.

While I use the commercial php IDE PHPEd from NuSphere, the same would apply for other debuggers like Zend in Eclipse, Komodo, etc.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <p> <table> <tr> <td> <hr> <img>
  • Lines and paragraphs break automatically.
  • You may use [acidfree:xx] tags to display acidfree videos or images inline.
More information about formatting options