2016年4月30日 星期六

Use xdebug remote debug by intellij IDEA

1. setting php.ini
zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port="9000"
xdebug.profiler_enable=1

xdebug.profiler_output_dir="/tmp/xdebug_profiler.txt"

2. setting intellij IDEA
- make sure right to button [Start listening for PHP Debug connection]
- intellij IDEA > Preferences > Languages & Frameworks > PHP > Debug

- Click [Use debugger bookmarklets to initiate debugging from you favorite browser]
   - reference : https://www.youtube.com/watch?v=hui9GKJGb8I

- php -S 127.0.0.1:8000

3. Browser 127.0.0.1:8000
4. Click bookmark [Start debugger]

2016年4月14日 星期四

Laravel 5: How to setup Whoops for error pages

https://www.youtube.com/watch?v=BDdwwWzSx0E

Install debugbar by specify version

sudo composer require barryvdh/laravel-debugbar ^2.0

wibiya widget