xdebug

Increase var_display_max_depth for xdebug

核能气质少年 提交于 2019-12-03 01:33:48
I recently installed xdebug on my ststem and wanted to increase xdebug.var_display_max_depth from 3 to 10. How can I go about doing that? There are two ways to do that. You can edit this value locally and globally too. Local setting (" Local value ") in your own PHP file: <?php ini_set('xdebug.var_display_max_depth', '10'); // here comes your code... ?> Global setting (" Master value ") in php.ini : First locate your php.ini file. In phpinfo() , you can get to know where it is from "Loaded Configuration File" directive. You can also locate it using command prompt/terminal: Windows: php --ini |

Installing xdebug with PHP 5.5

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've read quite a lot answers but couldn't figure out why xdebug doesn't work. php.ini: [ xdebug ] zend_extension = "/usr/lib/php5/20090626/xdebug.so" php -v: PHP 5.5 . 6 - 1 + debphp . org ~ precise + 2 ( cli ) ( built : Nov 21 2013 14 : 31 : 41 ) Copyright ( c ) 1997 - 2013 The PHP Group Zend Engine v2 . 5.0 , Copyright ( c ) 1998 - 2013 Zend Technologies with Zend OPcache v7 . 0.3 - dev , Copyright ( c ) 1999 - 2013 , by Zend Technologies /usr/lib/php5/20090626/xdebug.so does exist. No zend optimizer in php.ini. Also if I try to

How to run or debug php on Visual Studio Code (VSCode)

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can't find a way to run or debug php on Visual studio code, Does anyone know how? 回答1: As far as i read about it today, you can't debug anything else than node.js, JavaScript and TypeScript at the moment, but they said they want to add new languages which you can debug. The editor is still in development. Nevertheless, I don't think there will be a php debugger in the future since php is serverside, so you can't debug it on your client alone. If you want to debug php, I can recommend xDebug . Updated: Now, it is possible to debug with VS

Using xdebug through Docker container in PhpStorm

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've read some posts about this but none helped in my case or simply overlooked the missing piece. I cannot get xdebug to work on PhpStorm using a Docker container. Docker-compose.yml version: '2' services: web: image: nginx:latest volumes: - .:/usr/share/nginx/html - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/logs:/var/logs/nginx - ./nginx/site-enabled/default.conf:/etc/nginx/sites-enabled/default.conf ports: - "80:80" depends_on: - php db: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: 1234 MYSQL_DATABASE: local_db MYSQL_USER:

PhpStorm is not receiving xdebug connections : PhpStorm event log : Cannot evaluate expression &#039;isset($_SERVER[&#039;PHP_IDE_CONFIG&#039;])&#039;

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I configured everything for PhpStorm and xdebug to work, I'm running Ubuntu 14.04. the connection back to the IDE is not established, and I get this in the IDE event Log I'll put together configuration values I configured in various places. As I can't find out where is the problem php.ini zend_extension = /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_connect_back = 1 xdebug.remote_autostart = 1 xdebug.remote_log=xxx

Xdebug - command is not available

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm debugging remotely my project in PhpStorm. IDE shows 'Connected' for a moment and immediately goes into 'Waiting for incoming connection...' Below is Xdebug log from this session I: Connecting to configured address/port: X.x.x.x:9000. I: Connected to client. :-) > <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///xxx/info.php" language="PHP" protocol_version="1.0" appid="4365" idekey="10594"><engine version="2.2.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author>

Check if xdebug is working

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Without installing a texteditor or an IDE, is it possible to test if xdebug is working, i.e. if it can debug php code? The only part xdebug comes up in phpinfo() is the following: Additional .ini files parsed /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini, /etc/php5/apache2/conf.d/xdebug.ini It is not mentioned in the phpinfo() anywhere else. 回答1: Without actually doing some debugging, I guess you can't be certain that a debugger is working.

Visual Studio Code (VSCode) - Error: Debug Adapter Process Has Terminated Unexpectedly

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm struggling with this error message. Sometimes I cannot run xdebug on Visual Studio Code after upgrading or restarting the editor. Here's a screenshot of the error: Can anyone help me with this? 回答1: After several minutes to find out what happens on my machine, i figure it out how to solve my problem. Because the xdebug is running based on port 9000 and i see on the Debug Console (VSCode) has message listen EADDRINUSE :::9000 , i think there is an another process running on port 9000 so i check what process running on it by this command

xdebug not loading. not found in phpinfo() after apache restart

穿精又带淫゛_ 提交于 2019-12-03 00:51:10
I've been scouring every resource I could find, but came up empty. I get the dreaded "Waiting for Connection" message in NetBeans 6.9 when I start a debug session. After much reading, most folks are able to get phpinfo() to display that it loaded the xdebug module. Not so with me. I downloaded the source through SVN using this call svn co svn://svn.xdebug.org/svn/xdebug/xdebug/trunk xdebug I switched to the xdebug directory and then ran phpize on the source sudo /Applications/MAMP/bin/php5/bin/phpize Password: grep: /Applications/MAMP/bin/php5/include/php/main/php.h: No such file or directory

Xdebug的安装方式

匿名 (未验证) 提交于 2019-12-03 00:22:01
现在有很多人在调试php程序的时候使用的任是die,或则exit 这样的函数或者语句调试断点。 但断点的调试有一种更简单的方法,那就是xdebug,相信很多人都听过,但是却不会安装Xdebug,要不然因为下载版本错误,要不然是因为配置文件错误,安装失败,网上诸如此类的文章太多,今天我手把手教大家最简单的安装方法 <?php phpinfo(); 接着单击鼠标右键查看源代码 这里会有你全部的php相关信息,Xdebug要通过这些信息匹配最适合你的版本 接着ctrl+A 全选,复制网页源代码 接着打开 Xdebug的官网: https://xdebug.org/wizard.php 把复制的网页源代码咱贴到输入框中,然后点击Analyse my phpinfo() output 按钮:匹配合适自己php版本的Xdebug 然后会出来下面的信息 接着下载文件,放入官网给你匹配的目录当中(就是php的拓展目录) 接着我们再使用phpinfo()查看php信息,ctrl+F查找Xdebug 如果有如下信息就代表你已经安装成功了。 注意!!! 有一些集成坏境,你就算没安装Xdebug,但是在phpinfo中搜索xdebug仍然会有这些的信息,但是集成的环境Xdebug是有问题的,无法正常使用,反正我的是这样,所以还是需要去官网下载。 接着php部分就安装完毕了