I am using Xdebug with the DBGP Notepad++ plugin
I can add breakpoints fine, the watchlist will show arrays and sometimes objects and hovering over variables shows their values. However the local and global variables tabs don't show anything and whenever I hover over an object or it's method or refresh local context the plugin disconnects with an 'Undefined error' popup. No error seems to be printed in the xdebug log.
I am using Notepad++ 6.4.3, Xdebug 2.2.0, Php 5.4.4, Xampp on Windows with the Symfony2 framework.
My Xdebug settings are.
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = "On"
xdebug.extended_info = 1
xdebug.idekey = "xdebug"
xdebug.max_nesting_level = 100
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.show_local_vars = 9
xdebug.var_display_max_children = 128
Thanks.
I contacted the creator of the plugin and he says the plugin is broken because it hasn't been updated to work with newer versions of notepad++/xdebug and he hasn't got time to update it. You can see the discussion here
Related
NetBeans IDE 8.2 (Build 201705191307)
PHP 5.5.38 (due to legacy application)
Chrome 66.0.3359.170 (Official Build) (64-bit)
In the last few days my NetBeans debug stops working after one debug run and will only debug after I restart NetBeans. I've tried disabling all Chrome extensions other than NetBeans Connector and tested if restarting browser and stack would help but only restarting NetBeans works. It will also freeze up in the middle of a debug.
I have not touched php.ini
This is killing my productivity. Has anyone had this problem and how did you fix it?
UPDATE
I set up Visual Studio Code and debugging works fine so this must be a NetBeans issue.
Unchanged php.ini (same settings that worked last week)
[xdebug]
zend_extension = C:\xampp_php_5.5.38\php\ext\php_xdebug-2.4.1-5.5-vc11.dll
xdebug.idekey = netbeans-xdebug
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:/xampp_php_5.5.38/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 0
xdebug.remote_host = 192.168.1.114
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
xdebug.trace_output_dir = "C:/xampp_php_5.5.38/tmp"
xdebug.remote_log = "c:/xampp/tmp/xdebug/xdebug_remot.log"
xdebug.show_local_vars = 9
xdebug.trace_output_dir = "C:/xampp_php_5.5.38/tmp"
Derp, I 'fixed' it by removing xdebug.remote_autostart=1 from my xebug.ini file, see nginx php-fpm xdebug netbeans can start only one debug session .
I've created a PHP project in NetBeans called TerraNubis. The project folder and source folder are located in C:\development\TerraNubis. In the Project Properties window, in the Run Configuration tab I've set the option to run the configuration as local website, the project url to http://localhost/TerraNubis/ and the index file to index.php.
I installed XAMPP (xampp-win32-7.1.11-0-VC14-installer.exe on Windows 10) and downloaded Xdebug (php_xdebug-2.5.5-7.1-vc14.dll, which is now located in C:\xampp\php\ext).
The files from the sources folder are being copied to C:\xampp\htdocs\TerraNubis. In the NetBeans Options window I've set the PHP 5 interpreter to C:\xampp\php\php.exe. In the Debugging tab, the debugger port is set to 9000, the session ID to netbeans-xdebug and the maximum data length to 2048. All the checkboxes in this tab are empty.
In my php.ini file I commented out
zend.enable_gc = On
and at the bottom of the file I added the following code:
[XDEBUG]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.5-7.1-vc14.dll"
xdebug.idekey = netbeans-xdebug
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:/xampp/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 0
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
xdebug.remote_log = "C:/xampp/tmp/xdebug/xdebug_remot.log"
xdebug.show_local_vars = 9
xdebug.trace_output_dir = "C:/xampp/tmp"
In NetBeans, when I right click on the TerraNubis project in the Projects tree and click on Debug, I see at the bottom right the message: "Waiting For Connection (netbeans-xdebug)". Then nothing happens. It just keeps displaying the same message.
How can I run the Xdebug properly on a local website?
i'm using PHPStorm and trying to run Xdebug according this video https://laracasts.com/series/how-to-be-awesome-in-phpstorm/episodes/20?autoplay=true.
First part works perfectly (https://laracasts.com/series/how-to-be-awesome-in-phpstorm/episodes/19?autoplay=true), but i'm stuck at second one.
Port 9000 was not working, so i changed it to 10000.
I configured PHP Web Application configuration
and after I press debug button, web is blank
and still loading and PHPStorm is waiting for incoming connection.
I have checked "can accept external connection" at PHP - Debug - Xdebug and xdebug in php.ini configured like this:
[XDebug]
zend_extension="/usr/local/Cellar/php56-xdebug/2.3.3/xdebug.so"
xdebug.remote_enable = 1
xdebug.cli_color = 1
xdebug.show_local_vars = 1
xdebug.remote_port = 10000
xdebug.remote_host= localhost
xdebug.remote_autostart = 1
xdebug.remote_log="/usr/local/tmp/xdebug.log"
xdebug.idekey = "PHPSTORM"
xdebug.ide_key = "PHPSTORM"
xdebug.profiler_enable = 1
xdebug.profiler_output_dir="/usr/local/tmp/xdebug-profiler"
xdebug.profiler_enable_trigger = 1
I tried to validate web server with this result:
I was googling and trying solve this for 6 hours, try to help me please, i`m kind of dummy in this.
Using OS X El Capitan.
I can debug single script, but not a whole website.
When i run this directly online-chef.dev:10000, it says ERR_CONNECTION_REFUSED.
"online-chef.dev" is at local virtual host.
What I am doing wrong?
Thank you so much!
You are tried to debug web page through xdebug. For debug javascript you need install browser extention. This is manual for javascript debugging.
For javascript debug get current extention port and enter in this place:
For XDebug i don't want always click debug button, so i simple enable listen connections. This is manual for XDebug from JetBrains.
Here is my xdebug config that working with listen connections.
xdebug.idekey = "PHPSTORM"
xdebug.remote_port = 9001
xdebug.remote_mode = "req"
xdebug.remote_host = 10.0.2.2
xdebug.remote_handler = "dbgp"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.extended_info = 1
So, when i need debug javascript i click debug button. When i need debug php i just put breakpoint.
First set up debugging instruments often is hard, but it's pays off.
I am trying to remote debug php 5.4.4 using phpStorm 4.0.3, but failed. Strangely, I can debug local PHP code normally in Phpstorm.
I'm using Xdebug v2.2.0 and my OS is Windows 8, which is the main reason cannot debug I assume. Because I can do it on Windows Server 2003, using the same configuration.
This is my configuration in php.ini:
[xdebug]
zend_extension="D:/apachePHP/PHP/ext/php_xdebug.dll"
xdebug.remote_enable = On
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.collect_assignments = 1
xdebug.collect_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.show_exception_trace = 1
xdebug.show_local_vars = 1
I use phpStorm with windows 8 + wampserver 32bit (also 64bit works) and it works, but i had to update the xedebug.dll at: http://xdebug.org/download.php
you might also need to start debuging session in browser, helpfull chrome extension: xdebug helper
there could be many causes, but one of these might be it.
I have configured xdebug in wamp+netbeans. It installed properly and in phpinfo() it showing xdebug configuration information. But still I am not able to debug my application with it.
Sometimes it shows the waiting for connection error. Sometimes it doesn't show it but also not stopped on given breakpoints.
Following is my configuration :
PHP Version 5.3.9
PHP Extension Build API20090626, TS, VC9
In D:\wamp\bin\php\php5.3.9\ext\php_xdebug-2.2.1-5.3-vc9.dll
xdebug version: (in phpinfo)
Version 2.2.1
IDE Key netbeans-xdebug
In php.ini file
[xdebug]
zend_extension = "D:/wamp/php/ext/php_xdebug-2.2.1-5.3-vc9.dll"
xdebug.profiler_output_dir = "D:/wamp/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.profiler_enable = 0
xdebug.profiler_append = 0
xdebug.extended_info = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.idekey = xdebug
xdebug.remote_log = "D:/wamp/tmp/xdebug/xdebug_remot.log"
xdebug.show_exception_trace = 0
xdebug.show_local_vars = 9
xdebug.show_mem_delta = 0
xdebug.trace_format = 0
I followed almost all tutorial on google (also on stackoverflow) and I think configuration seems to be correct. So what would be the issue?
If you want more information about configuration please let me know.
Any help would be appreciated.
Thanks in advance.
I had the same problem waiting for connection but there I found a very good step by step tutorial here which solved mine. Hope this link be also helpful for you.