xdebug

XAMPP PhpStorm XDebug not stopping on breakpoints

試著忘記壹切 提交于 2019-12-24 15:26:48
问题 I have a Windows 7 machine with XAMPP(Apache 2.4.4 - Win32 PHP 5.4.16) and PHPStorm 6.0.3 For the life of me I cannot get XDebug working on this machine!! I look at my PHPInfo page: This tells me that I need to download XDebug "PHP 5.4 VC9 TS (64 bit)" I download and copy to produce: C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.dll My PHP.ini has: [XDebug] zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9-x86_64.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1

TOMCAT开放远程调试端口

£可爱£侵袭症+ 提交于 2019-12-24 11:49:42
方法1、 WIN系统,在catalina.bat里: SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899 Linux系统,在catalina.sh里: CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899" 方法2、 Win系统 在tomcat目录下的bin目录中新建debug.bat,编辑内容如下 set JPDA_ADDRESS=8000 set JPAD_TRANSPORT=dt_socket SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899 startup 双击debug.bat Linux 系统 startup.sh 中的最后一行 exec "$PRGDIR"/"

Debugging 2 servers with php's Xdebug at the same time

懵懂的女人 提交于 2019-12-24 11:20:47
问题 I have a PHP script that is sending a series of http requests to another php script on another server. I have Xdebug installed on both servers and I'm using NetBeans as my debug client. The problem I am having is that NetBeans can't have 2 debug sessions at the same time and you can't spawn 2 NetBeans processes on the same machine. Am I going to have to run Eclipse and NetBeans at the same time?(YUCK!) Or is there a better way? 回答1: I would get another machine, install Netbeans on it, and

How to configure xdebug stacktrace to link to and open files in VS Code

柔情痞子 提交于 2019-12-24 11:11:45
问题 When xdebug provides a stacktrace, it can create links to open files in your text editor at a particular line. For instance, the following configuration will open files in Sublime, if the subl handler is installed: xdebug.file_link_format="subl://open?url=%f&line=%l" How does one set file_link_format for VS Code? 回答1: Here's the documentation of the URL format for VS Code. Thus, the xdebug config is: xdebug.file_link_format="vscode://file/%f:%l" 来源: https://stackoverflow.com/questions

Local variables not shown when OPcache is enabled while debugging with Xdebug

会有一股神秘感。 提交于 2019-12-24 09:13:16
问题 I have Xdebug enabled and working together with OPcache. OPcache module is loaded first by phpfpm (important). If you try to debug the code below (from the browser) and put a breakpoing in the local variables you will see that they are not displayed. If I deactivate OPCache everything works as expected. I'm using PhpStorm 2018.2.5 to debug. class Foo { public $member = 'Some value'; public function methodFoo() { $localFoo = "local2"; } } class Bar { public $firstMember = "foo"; public

CodeCoverage with PHPunit not generating

巧了我就是萌 提交于 2019-12-24 04:57:15
问题 PHPunit 3.7.1 PHP 5.3.14 Windows 7 Using cmd I "cd" into the dir where phpunit.xml lives and run phpunit -c phpunit.xml but that dosen't generate any code coverage. phpunit.xml: <phpunit bootstrap="./bootstrap.php" verbose="true" > <testsuites> <testsuite name="Test Suite"> <directory suffix=".php">./Base/src/</directory> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory suffix=".php">../src</directory> <exclude> <directory suffix=".php">../../vendor</directory> </exclude>

CodeCoverage with PHPunit not generating

蹲街弑〆低调 提交于 2019-12-24 04:57:07
问题 PHPunit 3.7.1 PHP 5.3.14 Windows 7 Using cmd I "cd" into the dir where phpunit.xml lives and run phpunit -c phpunit.xml but that dosen't generate any code coverage. phpunit.xml: <phpunit bootstrap="./bootstrap.php" verbose="true" > <testsuites> <testsuite name="Test Suite"> <directory suffix=".php">./Base/src/</directory> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory suffix=".php">../src</directory> <exclude> <directory suffix=".php">../../vendor</directory> </exclude>

Install Xdebug extension only for PHP7.1

我怕爱的太早我们不能终老 提交于 2019-12-24 02:33:40
问题 I have PHP 7.1 on Ubuntu 16.04 installed. When I'm trying to install Xdebug by using apt-get install php-xdebug , I'm getting xdebug.ini in directories 5.6, 7.0 and 7.1. I don't need /php/5.6/mods-available/xdebug.ini and /php/7.0/mods-available/xdebug.ini extensions, because I'm using only PHP 7.1 version. Any ideas? Thanks. 回答1: It's because php-xdebug is ambiguous and will download the default package which will contain multiple versions for php compatibility, try going to xdebug site and

Setting up IntelliJ Idea remote debugging with XDebug

我们两清 提交于 2019-12-24 01:25:58
问题 I have been trying to set up remote debugging in IntelliJ Idea and Xdebug for several days in a row with no success. I have a Windows 7 host and VM VirtualBox with Windows XP as a web server. It has WampServer installed with Apache, PHP and Xdebug. Xdebug is configured correctly: Summary Xdebug installed: 2.2.3 Server API: Apache 2.0 Handler Windows: yes - Compiler: MS VC9 - Architecture: x86 Zend Server: no PHP Version: 5.4.16 Zend API nr: 220100525 PHP API nr: 20100525 Debug Build: no

ZF 2: tutorial application, 'Config being merged must be an array […]'

 ̄綄美尐妖づ 提交于 2019-12-23 21:28:00
问题 My Enviroment (Zend Server): PHP Version 5.4.11 Zend Server Version: 6.0.1 Zend Framework: 1.12.3, 2.1.4 Zend Server Gateway: 0.9.0.201301302347 Build: 69400 So I tried to write my first application in ZF2 form official tutorial. ZF version in skeleton application: 2.2 This is link to my project, if someone wants to look at it closer. config/module.config.php <?php return array( 'controllers' => array( 'invokables' => array( 'Album\Controller\Album' => 'Album\Controller\AlbumController', ), )