my IDE is netbeans 8.2 and iam using xampp 3.2.1
what am i doing wrong ?
this is my php.ini file
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
this is the settings on netbeans:
Check this wiki page. You are missing at least port and mode configuration in the php.ini file:
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
Add this line if missing, in your php.ini file
;extension=php_xdebug.dll
Related
I have this configuration:
[XDebug]
zend_extension = "G:\xampp\php\ext\php_xdebug-2.5.5-7.1-vc14.dll"
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "G:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_log = "G:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "G:\xampp\tmp"
;36000 = 10h
xdebug.remote_cookie_expire_time = 36000
Please help. I am using Window 10.
Try using https://xdebug.org/wizard.php
I've had many difficulties in the past getting xdebug setup, but that little-known xdebug wizard has been a lifesaver for me in getting my xdebug settings right.
Xdebug and a Xdebug Manager are native with EasyPHP Deverser (www.easyphp.org). Maybe you can have a look.
I'm trying to install xdebug on xamp
-I've installed php_xdebug-2.6.0-7.0-vc14-nts-x86_64.dll on C:\xampp\php\ext
-I've disabled output buffering on php.ini
output_buffering=Off
-I've copied this text on php.ini
[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.6.0-7.0-vc14-nts-x86_64.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_log="c:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:\xampp\tmp"
; 3600 (1 hour), 36000 = 10h
xdebug.remote_cookie_expire_time = 36000
-I've restarted apache
But xdebug doesn't appear in phpinfo()
have WampServer Version 3.0.6 64bit
so
Apache 2.4.23 - PHP 5.6.25 - MySQL 5.7.14
I have downloaded php_xdebug-2.2.5-5.6-vc11-x86_64.dll and modified php.ini in this way:
[XDebug]
zend_extension = "C:\wamp64\bin\php\php5.6.25\php_xdebug-2.2.5-5.6-vc11-x86_64.dll"
xdebug.remote_port=9000
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.trace_output_dir = "C:\wamp64\tmp"
xdebug.profiler_append = 0
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\wamp64\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_autostart=1
xdebug.remote_connect_back=0
xdebug.remote_log=C:\wamp64\tmp\xdebug.log
But still Netbeans 8.02 doesn't stop on breakpoints.
phpinfo prompt xdebug.remote_enable = off
Why in your opinion?
The xdebug entry in php.ini is relocated to phpForApache.ini. Open the file and make xdebug.remote_enable = on .
My XAMPP installation in php.ini file
[Xdebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.idekey=PHPStorm
I done all setting in PhpStorm. But i am not able to start debugger my link is like that
http://localhost/aniCare/admin/login?XDEBUG_SESSION_START=13773
I put breakpoint on my function login. I m getting this Error:
My xdebug information:
I have debugging enabled from my localhost - RHEL. So my phpstorm installed on localhost works fine when i request a url from the same box as the apache server.
However, I would like the debugging to work from another machine (different host). Is there a setting that i am missing to enable. that.
my ini file :
zend_extension = ${extension_dir}/xdebug.so
xdebug.profiler_append = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_aggregate = 0
xdebug.profiler_enable = 0
xdebug.profiler_output_dir = /tmp
xdebug.profiler_output_name = cachegrind.out.%p
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host =localhost
xdebug.remote_port = 9000
xdebug.remote_mode = "req"
xdebug.allowed_clients = ""
xdebug.remote_connect_back=1
xdebug.idekey="mykey"