Run Xdebug in netbeans to debug Codeigniter

Asked

Viewed 408 times

2

I’m trying to debug an app in codeigniter via Xdebug in Netbeans. However, when running my app in debug mode, I can’t reach my controllers or any breakpoints after the first line of codeigniter index.php.

I am running codeigniter 3.0, in xampp and with netbeans 8.1.

In my php.ini the config are like this:

xdebug.remote_autostart=1
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_port= 9000
xdebug.remote_host = "127.0.0.1"

And in the project configs in the codeigniter this so:

inserir a descrição da imagem aqui

Has anyone ever had this problem? The error happens only with the codeigniter any other application I can debug normally

inserir a descrição da imagem aqui

  • See if the debuger configuration is checked break at first line

  • with this option marked it stops at the first line, without it it stops at no breakpont.

  • Try to have the query string p see if it enters break point, call your system in the browser and add ?XDEBUG_SESSION_START=netbeans-xdebug

  • even running this way, every new controller I call in my app always stops at the first line of CI index.php,. Very strange the debug even with breakpoint does not stop the application.

1 answer

2


I managed to solve the problem

In the advanced settings menu perform settings i left to debug the URL in the default option, and in the path mapping I left blank.

I don’t know why, but when I create the project this mapping of the path is filled and removing it the debug passed quietly until arriving at the breakpoints of my controllers.

Plus, thanks for the great friend’s help rray inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.