xdebug

PhpStorm Xdebug : Waiting for incoming connection with ide key

ぃ、小莉子 提交于 2019-12-08 03:08:21
问题 I am running PHP 7.0 and PhpStorm 2016.1 I have x-debug installed and this is my configuration : When running Debug form PhpStorm the Debugger tab shows this error message: Waiting for incoming connection with ide key '13136' ide key varies every time. Please help. 回答1: Your question is incomplete as it lacks your current php settings for xdebug, but it looks like you do not have idekey configured (you see IDE Key to be reported as " No value " for that reason). Just add: xdebug.idekey = ....

Xdebug in Netbeans: not stopping on breakpoint inside file in “web root's” parent folder

那年仲夏 提交于 2019-12-08 02:08:03
问题 I have a netbeans project with a directory tree like this: <source folder> | |---> gui <web root folder> | | | L---> datos.php | L---> index.php datos.php changes the working directory to .. (source folder) and includes index.php like this: chdir('..'); require 'index.php'; If I put a breakpoint inside datos.php, the debugger breaks on it correctly, but when putting one in index.php it ignores it. The strange thing is 6 months ago I had the same problem and I was able to fix it. Now I don't

Setup Xdebug and PHPStorm with remote server

蓝咒 提交于 2019-12-08 01:10:32
问题 I'm trying to debug a PHP script using Xdebug and PHPStorm on a remote server, and am quite new to remote debugging. I do not have full access to the server but have FTP (not SFTP) access to most of the files (I can't get to php.ini for example). Xdebug is installed on the server correctly according to the wizard on their website and uses default values. I have all project files downloaded and setup in a project, which is setup for deployment. This works fine. To setup debugging I've

Collate several xdebug coverage results into one report?

这一生的挚爱 提交于 2019-12-08 01:01:57
问题 I am using the php-code-coverage to collect coverage information from one HTTP request (thru apache). I'd like to store the coverage data from several requests, and then collate the results into one comprehensive report. Is this easy to do? I was hoping for something along the lines of: <?php require 'PHP/CodeCoverage/Autoload.php'; $coverage = new PHP_CodeCoverage; $coverage->start('<some request>'); // ... $coverage->stop(); $writer = new PHP_CodeCoverage_Report_XXX; $writer->process(

Getting error in XDEBUG

与世无争的帅哥 提交于 2019-12-08 00:44:29
问题 I just installed xdebug on my eclipse PDT installation and now I am getting the following error when trying to debug my PHP code using XDEBUG on my local debian box: web launch already running 2 questions: How can I kill this within Eclipse without getting out of Eclipse all together? Is there an additional configuration setting that needs to be set that were not in my instructions? Any help/direction would be appreciated as I'm at the point where I'm starting to pull my hair out. Thanks!

Visual Studio Code - Xdebug won't work

时光怂恿深爱的人放手 提交于 2019-12-08 00:34:55
问题 In Visual Studio Code (1.9.1) (mac) i have setup the php-debug plugin. In the debug screen i start ' listen for Xdebug '. After this i open the index.php on my XAMPP server (local). But nothing happens. the blue bar at the bottom of the screen turns orange. the step over, step into and step out buttons are greyed out. Also the following error message occurs at the watched variables: cannot evaluate code without an connection I try to use breakpoints on the following code: <?php $i = 0; do {

XAMPP 1.7.3, Eclipse PDT & XDebug - Debugging a PHP web page in Eclipse never stops at breakpoints

Deadly 提交于 2019-12-07 17:58:39
My development web server is currently a XAMPP 1.7.3 on my localhost (Win XP). I just set up my Eclipse 3.6 PDT with XDebug . It works fine, if I debug a file as a "PHP script", but when it comes to debugging it as a "PHP web page", XDebug ignores the breakpoints completely. Only a manually inserted xdebug_break() inside the code stops the debugger. This isn't very useful, if you want to use conditions with Eclipse's breakpoints. Here my config: php.ini: zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.remote_autostart=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote

Eclipse Xdebug Freezes at 57%

五迷三道 提交于 2019-12-07 16:50:02
问题 My problem: When launching a debug configuration from Eclipse for one of my php pages, the page opens successfully in Chrome but the Eclipse debugger freezes at 57% (in the bottom right hand corner of Eclipse) and never progresses further. The set breakpoints are never reached. My setup: MAMP 2.2 PHP 5.3.3 Eclipse Kepler Eclipse PDT Xdebug 2 virtual hosts with roots at /Applications/MAMP/htdocs Apache Port: 80 MySql Server Port: 3306 My virtual hosts setup within MAMP is working fine. Below

xdegug cannot step to next line in php view

你。 提交于 2019-12-07 16:36:24
问题 I am using Eclipse for PHP Luna Service Release 1 (4.4.1), and try to install xdebug for debugging. I follow this blog for for setting xdebug on xampp 1.8.1. Follow is my php.ini settings. [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" Basically it will stop on the break point i set, but then i press [F6], it will not go to next line. But in debug dialog window, line number keep going, and variables also change too. Does

code coverage of xDebug and PHPUnit says 100%, in fact it is not

眉间皱痕 提交于 2019-12-07 16:23:28
问题 I have the following function: function foo($p) { if ($p == null) throw new Exception('bla'); if ($p == null) { throw new Exception('bla'); } [...] } My Test for this function is not covering the lines throwing the exception. But PHPUnit tells me the first 'throw'-statement is coverd, the second not. Maybe the first is interpreted, but it is not executed. So I don't want to get the message '100%' if I have not reached 100%. Is this a bug in xDebug or do I have the possibility to configure