I have enabled Xdbug from php.ini. How do i enable debugging from eclipse. I set the debugger in eclipse but they are never hit, each time when ever it try to debug a new configuration is created.
debugger setting:
resolved it ,
following lines were commented. xdebug.remote_enable=true xdebug.remote_host=localhost xdebug.remote_port=10000 xdebug.remote_handler=dbgp xdebug.profiler_enable=1 xdebug.profiler_output_dir="C:\xampp\tmp"
Looks like your debugger session is already running. That's why you're getting that message. Eclipse usually switches to the Debug perspective when you hit debug. You can manually switch to it by clicking on the Open Perspective button.
If you're working with vhosts, make sure to create a new Server with that hostname. Go to Windows -> Preferences
and then PHP -> Debug
. Select the PHP Servers
option and create a new server with your vhost.
After that, create a new Run Configuration with your newly created server. Once you've created the configuration, you can simply run it. You can also quick access it by going to Run -> Debug History
. It will only show up in history once you've run it at least once.