I ended up using Xdebug:
To Install Xdebug:
- Go to webpage.
- Paste your
phpinfo()
contents into the box - Follow the instructions on the wizard page except for where it tells you to add
zend_extension = C:\Zend\ZendServer\lib\phpext\php_xdebug-2.2.1-5.4-vc9-nts.dll
to the top!, put this below theiOnCube
Loader (if you have it installed) - Add the following to
php.ini
then restart PHP & Apache.
php.ini
[XDebug]
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=0
xdebug.profiler_output_dir="C:\Zend\ZendServer\tmp\xdebug-profiler"
Xdebug in PhpStorm
- Generate and add bookmarklets to your browser here (Note the IDE key ##PHPSTORM##)
- Open File -> Settings -> PHP
- Choose your interpreter
- Click
[..]
and chooseDebugger
:Xdebug
- Click the "Configurations" then Edit Configurations... item (Drop down next to debug button on toolbar)
- Press the
[+]
to add a configuration and choosePHP Remote Debug
- Call it
Xdebug
and use the IDE keyPHPSTORM
- You can now start the debugger (Alt+Shift+F9)
- Start the debugger using the bookmarklet
You can now stop through code in PhpStorm, hope this helps someone