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!

0
8 comments

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

Andriy,

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

Thanks for assistance!:)

0

I know that. But thanx anyway :)

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

0
Avatar
Permanently deleted user

Andriy,

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

Ok, got it!:)

0
Avatar
Permanently deleted user

Austin,

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

Thanks for feedback!

0
Avatar
Permanently deleted user

Thanks!

0

Please sign in to leave a comment.