xdebug

xdebug vim plugin doesn't show variable values (php)

孤者浪人 提交于 2019-12-10 11:25:57
问题 I'm on Ubuntu 10.04 LTS vim version 7.2.330 xdebug vim plugin version 1.1.1 (downloaded from http://www.vim.org/scripts/script.php?script_id=1929) PHP 5.3.2 Apache/2.2.14 Xdebug v2.0.5 I have these options in my /etc/php5/apache2/php.ini file [debug] ; Remote settings xdebug.remote_autostart=off xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 ; General xdebug.auto_trace=off xdebug.collect_includes=on xdebug.collect

Netbeans, xdebug : start debugging from browser

孤街浪徒 提交于 2019-12-10 10:32:50
问题 I have following problem about debugging PHP files in Netbeans using xdebug : when I debug directly PHP file everything works OK. BUT: If I debug whole file (starts in index.html ) and after I click submit button which execute my PHP file , where is the breakpoint, It doesn't work. I wanna put breakpoint to PHP file to see what info I've received from my form in HTML page. I want to stop program just after those 2 variables, sent through ajax: $username = $_REQUEST["username"]; $password = $

enable xdebug on bluehost shared server

。_饼干妹妹 提交于 2019-12-10 10:29:51
问题 I want to setup phpunit on a demo site on a bluehost shared server. I want to check if the php codes work on the environment after I made modifications and added more components. With this, I need to set up xdebug. The problem is that my account is not allowed to download and install xdebug, I got permission denied. pecl install xdebug Then I read upon an answer here Xdebug for remote server not connecting. What I did is upload the xdebug.so file from my local, copy the /etc/php.ini to the

Xdebug not working with PHPStorm

大城市里の小女人 提交于 2019-12-10 10:28:26
问题 I use PHPStorm along with Xdebug to step through my code. PHPStorm is running on a Windows 7 machine, and my local webserver is running on a separate CentOS 6.4 machine. I've done a phpinfo(); to verify that Xdebug is being loaded by PHP, and it is. The following are the settings for my Xdebug in the PHP.ini: [xdebug] zend_extension="/usr/lib/php/modules/xdebug.so" xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.remote_host = "192.168.1.130" xdebug.remote_log = "/var/log/httpd

xdebug var_dump function colors

折月煮酒 提交于 2019-12-10 07:30:21
问题 I have installed xdebug on my computer with windows and it works fine by default - traces are colorfull and pretty but on another computer with ubuntu 10.10 its colourless and without any formatting. I tryed fill xdebug formatting parameters in php.ini but it didn't work for me :( What I need to make for improving output formatting? 回答1: I faced this problem once upon a time and turned out to be : open php.ini and look for html_errors in your case it should be off , so simply turn it on and

How to view value of long strings using NetBeans and x-debug?

北城余情 提交于 2019-12-10 03:52:17
问题 Is there a setting for x-debug or NetBeans to extend the maximum string size it will display? Using NetBeans to debug PHP application in Windows, I can add a watch or hover over any variable to see its value. But for long strings, all I get is (string), no value. Environment: Windows 7, NetBeans 7.0.1, x-debug 2.0.3-5.1.7, Apache 2.0.63, PHP 5.1.6 php.ini contains: zend_extension_ts = c:\wamp\bin\php\php5.1.6\ext\php_xdebug-2.0.3-5.1.7.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp

Visual Studio Code debugging Array evaluation

心不动则不痛 提交于 2019-12-10 00:59:10
问题 I have a small issue when debugging PHP with Visual Studio Code. The XDebug works fine, I am able to stop at breakpoints and evaluate variables by hovering on them or adding them to watch. However when I attempt to view an array which has more than 32 items, I can only see those first 32. For example, an array of 172 items will only display 32 items. I tried to evaluate this array in a manner of ways, running dump commands inside the console, or json_encode, to no avail. Any ideas? 回答1:

Xdebug laravel artisan commands

偶尔善良 提交于 2019-12-09 18:06:14
问题 I regularly use xdebug to debug applications, I've built a laravel application that takes an upload of a csv inserts the data to the database and the ids to a job queue. I've written an artisan command to be run via cron to then do something with this data. Xdebug works for accessing the site via the browser, but its not breaking on breakpoints when ran from cli. I run php5-fpm. My files /etc/php5/fpm/php.ini and /etc/php5/cli/php/ini both contain the following settings: zend_extension=/usr

Remote Debugging with XDebug from inside a Docker Container does not work

无人久伴 提交于 2019-12-09 05:17:07
问题 I'm trying to setup a dockered AMP environment and can't get the remote debugger working. My setup is as follows: I have a database container running mysql which is working like a charm. I built a Docker image 'phpmysqli' with the following Dockerfile FROM php:apache RUN docker-php-ext-install mysqli mbstring # zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so RUN pecl install xdebug RUN echo 'zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts

How to integrate Xdebug 2.2.3 (PHP 5.53) with PhpStorm 7.0

落爺英雄遲暮 提交于 2019-12-09 00:58:15
问题 How do I integrate Xdebug 2.2.3 (PHP 5.53) with the new PhpStorm 7.0? The official documentation doesn't provide a step-by-step process. 回答1: My default setups MAMP 2.2. Installation directory is "default". Phpstorm 7.0. The basic config are done as per guided by the online doc. A Phpstorm project has been setup with sample codes ready for debugging. Chrome browser is used. Feel free to contribute if you would like to share on other browsers. Configuring php.ini in MAMP to enable Xdebug Open