# Configure ## `xdebug.ini` ``` ini xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_port=9000 xdebug.remote_autostart=1 xdebug.remote_connect_back=1 xdebug.idekey=vagrant xdebug.remote_host=10.0.2.2 ``` The `remote_host` is the IDE's host ip from the vagrant box. `10.0.2.2` seems to be the default...i think, works for me. ## In PHPStorm ### Setup Server ![](http://f.cl.ly/items/3a1h2u033f1w181q0a1r/Screen%20Shot%202014-05-05%20at%202.50.09%20PM.png) ### Add Debug Configuration #### Run > Edit Configurations... ![](http://f.cl.ly/items/0r31131S0L3X0D0m3S2z/Screen%20Shot%202014-05-05%20at%202.53.06%20PM.png) ![](http://f.cl.ly/items/0e352f2c0L1l3R2U4644/Screen%20Shot%202014-05-05%20at%202.54.22%20PM.png) # Start Debugging ### Run > Debug... ![](http://f.cl.ly/items/2P0X0x2S1E0Q2H241w2Q/Screen%20Shot%202014-05-05%20at%202.55.43%20PM.png) ## Set a breakpoint ![](http://f.cl.ly/items/1k0P0M23382a2q3M1U2h/Screen%20Shot%202014-05-05%20at%203.24.39%20PM.png) ## Run your command, then switch to PHPStorm ![](http://f.cl.ly/items/1b3Y1W2W1O1m3e1f0s3W/bin_console_-_tackk_-____Code_work_tackk_.png) # Profit!