Debugging PHAR files

Has anybody ever been able to debug within PHAR files?

I have the zend framework packaged as a single .phar file and now that phpstorm 5.0 is out, I can actually view the files within.  I can also now set breakpoints in those files (I'm use xdebug), but phpstorm complains that it can't figure out where the file is and wants me to setup file mappings.  But, this doesn't work becaue the individual files packaged in the phar are not project files that I can map to.  Thoughts?

If this simply isn't supported, is there any future plans for it.  The new support for viewing PHARs as an external library is great, now we're just one step away from total awesomeness!

8 comments
Comment actions Permalink

Hi Austin,

This functionality is not yet supported: http://youtrack.jetbrains.com/issue/WI-13094

Currently it is planned to be implemented in v6

0
Comment actions Permalink

The was apparently fixed in 5.0.2.  How does it work? I can break on a line in the phar, but I can’t see anything. Instead, I get this error:

Cannot find a local copy of the file on server /path/to/zf.phar/library/Zend/Db/Table/Abstract.php
Local path is /path/to/zf.phar/libray/Zend/Db/Table/Abstract.php

In my project, I have the zend framework library packaged as a phar file.  How to I set up file mappings to make this usable?

0
Comment actions Permalink

Austin,

It is a bug - http://youtrack.jetbrains.com/issue/WI-13808. I will fix it ASAP and let you know. The fix will be included in the nearest EAP.

Thanks for feedback!

0
Comment actions Permalink

Andriy,

We've actually added this feature in the 5.0.2 update.

Thanks for assistance!:)

0
Comment actions Permalink

I know that. But thanx anyway :)

I wrote my message before Alexey changed the "Fix version" to 5.0.x

0
Comment actions Permalink

Andriy,

I wrote my message before Alexey changed the "Fix version" to 5.0.x

Ok, got it!:)

0
Comment actions Permalink

Austin,

Fixed now. Please wait for the nearest EAP or for the 5.0.3 release.

Thanks for feedback!

0

Please sign in to leave a comment.