Reputation: 37
I can't debug Symfony 3 with Netbeans.
I performed the following steps:
1) I installed php5-xdebug on ubuntu
2) I modified the php.ini file as follows:
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.max_nesting_level=300
3) I restarted apache
4) On Netbeans I set Run Configuration->Advanced->Do not Open Web Browser
5) I installed the easy Xdebug add-on for Firefox
6) I start the application with the console command php bin/console server:start
7) I put the breakpoint on the controller action with Netbeans
8) I start debug with Netbeans
9) I go on the url http://127.0.0.1:8000/shifts/1?XDEBUG_SESSION_START=netbeans-xdebug
Q - The page will load normally and debugging does not go on the breakpoint. Where am I wrong?
thanks
Upvotes: 2
Views: 1149
Reputation: 166
In order to debug your application using the PHP's built-in server follow the following steps:
Done with NetBeans IDE 8.2
Upvotes: 2