How do I debug PHP file in netbeans

1

I have been trying to configure the xdebug of the php.ini but it turns out that in that file nothing comes from xdebug, I see tutorial and in all it puts that word and in my configuration file I can not find it. How can I solve that? Thanks

    
asked by Ronald Sanchez 05.10.2017 в 00:40
source

1 answer

1

Add this to your php.ini:

[XDEBUG]
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9002
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.trace_output_dir = "C:\IIS\tmp"
xdebug.remote_mode = req
zend_extension="C:\Program Files\PHP\v7.1\ext\php_xdebug-2.5.3-7.1-vc14-nts-x86_64.dll"

The ddl can be downloaded from the page of Xdebug and it is very important that remote_port match what is configured in the graphic interface of netbeans. Routes and versions depend on your installation.

    
answered by 05.10.2017 / 00:54
source