草庐IT

phpNN-xdebug

全部标签

php - XDebug 分析在 Windows 命令行中不起作用

我正在努力处理WAMP中的xDebug分析。它与浏览器完美配合,我得到了cachegrind.out文件,但如果我尝试使用命令行执行php脚本,我就不走运了。没有生成cachegrind文件。这是我的php.ini文件:[xdebug]xdebug.remote_enable=Onxdebug.profiler_enable=1xdebug.profiler_enable_trigger=1xdebug.profiler_output_name=cachegrind.out.%t.%pxdebug.profiler_output_dir="c:/wamp/tmp/profiler"我也

php - 我无法让 xdebug 工作

我的系统:-windows7-php5.5.9-stack:xampp(32bit)xdebug版本:来自http://xdebug.org/download.php的PHP5.5VC9(32位)和我的php.ini:[XDebug]zend_extension="php_xdebug-2.3.1-5.5-vc9-nts.dll"xdebug.remote_handler=dbgpxdebug.remote_enable=1xdebug.remote_port=9000xdebug.remote_host=127.0.0.1xdebug.profiler_enable=1xdebug.

使用 xdebug 进行 php 命令行调试

我是xdebug的新手,想知道是否可以从Windows命令行(应用断点)调试php脚本。我看过各种使用xdebug的例子,但他们都在谈论通过IDE(Eclipse或Netbeans)进行调试。所以我想知道是否可以使用命令行(Windows)调试脚本。如果这是可能的,那么有人可以提供链接/URL来提供逐步指导以实现这一目标吗? 最佳答案 xdebugprojectpage提到一些客户端实现,它提到:Xdebug2isbundledwithasimplecommandlineclientfortheDBGpprotocol.你试过那个吗

php - 如何在适用于 Windows 的 XAMPP v3.2.1 上使用 Eclipse 配置 PHP XDebug?

XDebug在Windows上的XAMPP中默认未启用,所有安装调试器的尝试都会导致死路。peclinstallxdebug在Windows上不起作用,并出现错误并显示ERROR:TheDSPxdebug.dspdoesnotexist.ZendDebugger的唯一下载是cygwin版本,不兼容XAMPP。 最佳答案 DLLphp_xdebug.dll已经与XAMPP捆绑在一起,但由于一些愚蠢的原因,配置默认被注释掉。取消注释php.ini末尾的行,设置remote_enable=1并重新启动Apache:[XDebug]zend

windows - PhpStorm Xdebug : Port 9000 is busy, 还设置在端口 63342

我刚刚安装了Xdebug,一启动PhpStorm,我就看到这条消息:这是由于其他一些运行端口9000的程序,我不想管它:C:\Users\Rsluimersλnetstat-ab...TCP0.0.0.0:9000LT1736:0LISTENING[aeagent.exe]...所以我在PhpStorm设置中设置了Xdebug调试器端口:在php.ini中:...[Xdebug]zend_extension="C:\ProgramFiles\PHP\ext\php_xdebug-2.5.5-7.1-vc14-x86_64.dll"xdebug.remote_enable=1xdebug

windows - PHP7.1 + XDebug + WAMP + Visual Studio Code 问题

近2天以来,我一直在尝试获得一个有效的设置。仍然没有运气。问题:在VisualStudioCode中,在我的项目中,一旦我单击“StarDebugging”的绿色箭头,然后转到浏览器和我的本地网站,我就会刷新。VSC中没有任何反应。没有列出任何变量,我的断点都没有做任何事情,等等。我的环境:Windows10WAMP3.1.332位环境-位于:c:\wamp在WAMP中为我的多个网站安装设置vhostwebsite-project-name:8080Apache2.4.27使用端口:8080PHPv7.1.1632位x86-位于“c:/wamp/bin/php/php7.1.16”安装

windows - 如何从命令行使用 PHPUnit 运行 XDebug?

我让netbeans在Debug模式下运行。现在我想用?XDEBUG_SESSION_START=netbeans-xdebug运行单元测试,目标是在我进行时设置断点。可能吗?我试过这样的:phpunitmyTest.php?XDEBUG_SESSION_START=netbeans-xdebug不起作用。有什么想法吗?更新根据这个:http://blog.doh.ms/2011/05/13/debugging-phpunit-tests-in-netbeans-with-xdebug/Gotocommandlineandrunphpunit-debug.Nowdebuggingsta

php - Xdebug Profiler 无法在 apache 上工作

问题是,如果我通过浏览器从我的服务器请求任何页面,我不会从Xdebug-Profiler获得任何输出。如果我在终端中用php调用脚本,例如php/var/www/html/index.php然后将创建探查器的输出。所以我想我的配置没问题。这是我的phpinfo中的重要设置:xdebug.profiler_aggregateOffOffxdebug.profiler_appendOffOffxdebug.profiler_enableOnOnxdebug.profiler_enable_triggerOffOffxdebug.profiler_enable_trigger_valueno

php - 无法让 XDebug 在 Vim 中建立连接。获取 "no attribue ' 停止'"错误

根据此错误消息生成的搜索引擎命中率来判断,我知道这是一个常见问题,但目前还没有任何有用的答案。我正在尝试使用SamGhods在Vim中设置XDebugDebugger.vim按照HowtoDebugPHPwithVimandXDebugonLinux上的说明执行脚本(这是使用XDebug设置Vim的常用引用资料)。我在OSX10.6上运行MacVim7.3,当我尝试将调试器连接到服务器时,我得到:(,AttributeError("DbgProtocolinstancehasnoattribute'stop'",),)File"/Users/tjlahr/.vim/plugin/deb

php - 如何使 xdebug 与 Zend Studio 一起工作

我有以下配置:在远程机器上:zend_extension=/usr/lib64/php/modules/xdebug.soxdebug.profiler_enable=0xdebug.profiler_enable_trigger=1xdebug.profiler_output_dir=/tmp/xdebugxdebug.remote_connect_back=1xdebug.remote_port=9000在本地机器上:我安装了zendstudio,并将PHPDebugger设置为XDebug。接受设置为任意的远程session。我使用远程连接(sftp)处理代码。telnetloc