CodeIgniter Forums
Phpstorm with CI & Xdebug - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Phpstorm with CI & Xdebug (/showthread.php?tid=66574)



Phpstorm with CI & Xdebug - Snaffyc - 11-06-2016

Is it possible to use CI with Xdebug using Phpstorm ? Debugger doesn't stop at breakpoint for example in my controller/model, always reaches only index.php. I triend remote debug, web application, and with listening for PHP Debug Connecitons + Xdebug helper. Nothing work. Here is my php.ini conf 
[XDEBUG]
zend_extension = C:\xampp\php\ext\php_xdebug-2.4.1-7.0-vc14.dll
xdebug.remote_enable=1
xdebug.remote_port=9001
xdebug.profiler_enable=1
xdebug.remote_handler="dbgp"
xdebug.profiler_output_dir="xampp\tmp"
xdebug.remote_log="C:\xampp\tmp\xdebug.log"
xdebug.trace_output_dir="C:\xampp\tmp"
xdebug.idekey = "PHPSTORM"
xdebug.remote_autostart=1


RE: Phpstorm with CI & Xdebug - cartalot - 11-07-2016

have you tried the eap or public preview version? they just added support for codeigniter but its not in the official release version yet
public preview version:
https://blog.jetbrains.com/phpstorm/2016/11/phpstorm-2016-3-public-preview/

this is the codeigniter support announcement (but don't download this version - the one above is more current)
https://blog.jetbrains.com/phpstorm/2016/10/phpstorm-2016-3-eap-163-6512/


RE: Phpstorm with CI & Xdebug - InsiteFX - 11-07-2016

Its in phpStorm 2016.2.2 I just updated mine


RE: Phpstorm with CI & Xdebug - Snaffyc - 11-08-2016

I have just updated to 2016.2.2 and still have the same problem with debugger I also tried the latest version of EAP. Support for CI is turn on automatically? I haven't seen any notification and also can't find any mention of the CI in the options.


RE: Phpstorm with CI & Xdebug - InsiteFX - 11-08-2016

It's auto-complete for CI methods etc.


RE: Phpstorm with CI & Xdebug - johnpon - 11-09-2016

CI support will be available in the next version of PhpStorm, not 2016.2.2, but 2016.3: https://blog.jetbrains.com/phpstorm/2016/11/phpstorm-2016-3-public-preview/


RE: Phpstorm with CI & Xdebug - cartalot - 11-09-2016

i posted those links but had not tried it. just downloaded latest EAP but it does not appear to be doing anything for codeigniter libraries etc - at least on my setup. if anyone has had success with this please post. otherwise the method using an autocomplete file in application/config is still working http://forum.codeigniter.com/thread-63641-post-325791.html#pid325791


RE: Phpstorm with CI & Xdebug - Snaffyc - 11-11-2016

I also did not feel integration IDE in my code-styling, I'm still using a solution of the above-mentioned link anyway still my main problem boils down to the debugging.Currently, I do not need to use it but in the future it may be necessary; Is debugger does not work at the level of the interpreter? It is necessary to support from the IDE?


RE: Phpstorm with CI & Xdebug - cartalot - 11-11-2016

maybe this will help?
https://www.youtube.com/watch?v=GokeXqI93x8
recent hour long video tutorial about xdebug and phpstorm. and if you get it working please post


RE: Phpstorm with CI & Xdebug - johnpon - 11-30-2016

About the new version (2016.3) that is now live what they support is:

"So far we've bundled CodeIgniter code style: Settings->Editor->Code Style->PHP->Set From... We're planning to extend support in the future versions."