phpdbg aims to be a lightweight, powerful, easy to use debugging platform for PHP 5.4+
Questions tagged [phpdbg]
26 questions
27
votes
4 answers
PHPUnit coverage: Allowed memory size of 536870912 bytes exhausted
I am trying to generate code test coverage for my PHP project with PHPUnit and phpdbg using the following command:
phpdbg -dmemory_limit=512M -qrr ./bin/phpunit -c .phpunit.cover.xml
This works perfectly fine:
PHPUnit 6.2.4 by Sebastian Bergmann…

Sasan Rose
- 623
- 1
- 7
- 11
13
votes
2 answers
Using phpdbg with the built-in php server?
I really like using the php built in server, and I really like the look of phpdbg. It reminds me of pry in Ruby land. But I've been having trouble getting it to work. Is it possible to run user phpdbg with the build in web server?
E.g., how I…

kindrobot
- 1,309
- 1
- 10
- 19
12
votes
1 answer
How to choose the driver that PHPUnit uses for code coverage?
I'm getting incorrect code coverage reports with PHPUnit, and I believe it's a bug with XDebug.
How can I configure PHPUnit to use one of its other drivers, namely, PHPDBG?
(I'm using PHPUnit 4.7.7 and PHP 5.5.12)

Jodes
- 14,118
- 26
- 97
- 156
5
votes
1 answer
phpdbg/phpunit throws error even when memory limit is -1
I have a 32GB machine and running over 2000 test cases using phpdbg for code coverage.
phpdbg -qrr -d memory_limit=-1./vendor/phpunit/phpunit/phpunit --debug --verbose
After running for some time, it throws the following error even memory_limit is…

vivek
- 151
- 1
- 6
3
votes
1 answer
How can I read from STDIN while stepwise execution with phpdbg
Debugging a php script with phpdbg, how can I read from some data from STDIN ?
I am debugging a php script foo.php.
foo.php reads from a line from STDIN when executed.
I want to stepwise execute it with phpdbg.
I tried that
$ phpdbg foo.php
phpdbg>…

dnishiyama
- 31
- 1
2
votes
0 answers
phpdbg with php7 always returns [nothing to execute!]
I'm just trying to start up with phpdbg, i have installed it using
apt-get install --yes php-phpdbg
I'm trying to run phpdbg using:
$ phpdbg -qrr vendor/bin/phpunit
and
$ phpdbg -qrr vendor/bin/phpunit ExampleTest.php
ExampleTest.php…

Iván Quiñones
- 501
- 4
- 12
2
votes
1 answer
How to get the PHP Code Coverage working with phpdbg on a Windows Server?
Since I still have troubles with PHPUnit / PHP Code Coverage and Xdebug, I decided to try it another way -- with phpdbg.
I did it as hier shown. Tried in CMD and also in Git Bash, but the result is the same, it fails:
$ composer info | grep…

automatix
- 14,018
- 26
- 105
- 230
2
votes
2 answers
debugging codeigniter with phpdbg
I'm trying to debug a web application based on the CodeIgniter (2.x) framework. I've tried var_dumping $_SERVER and recreating this at the beginning of my debugging session (bootstrapping phpdbg).
$ phpdbg -e index.php
phpdbg> ev…

timwaagh
- 303
- 3
- 14
2
votes
1 answer
installation error with php 5.6 and phpdbg
I have been trying to install the new PHP 5.6 on Mac OS using HomeBrew. I have no problem but when I try to get it installed using --with-phpdbg it fails with the error:
sapi/phpdbg/phpdbg.c:1498:2: error: expected identifier or '('
if (cleaning…

Paul Ochon
- 23
- 2
2
votes
2 answers
How can I translate the phpdbg installation instructions for OS X?
I am trying to install phpdbg on OS X. The docs say to cd to /usr/src ... I don't have that directory. What normally goes in /usr/src/php-src/sapi? The php source? If so, where can I find the equivalent directory on OS X? I can't find a php-src…

bernie2436
- 22,841
- 49
- 151
- 244
1
vote
1 answer
trying to measure coverage of a simple script with phpdbg
I am trying to measure test coverage with no test framework using phpdbg
My test test script looks like this:
$ cat hello.php

Alex028502
- 3,486
- 2
- 23
- 50
1
vote
0 answers
Running phpdbg to analyse "live" code coverage
I want to allow my testers to use the development website "as usual" and collect code coverages of every "run", combined everything and be able to say "after 4 hours of tests, here are the 75% of the code that were executed".
I use the…

Loïc Février
- 7,540
- 8
- 39
- 51
1
vote
1 answer
php7.0-dbg Installed and don't work
I installed php7.0-dbg using ppa:ondrej/ph into my ubuntu LTS 14.04. After the installation I tryed run phpdbg command, but I received the message:
phpdbg: command not found
Did I understand wrong? What is that package?
My dpkg -l php7.0*

The Zani
- 111
- 4
1
vote
1 answer
Which delimiter can be used in phpdbg console or how to run multiple commands in one line?
I want to be able to run something like this:
clean; run; or shorter (X; r)
continue; ev $my_var; ev $other_var or shorter (c; ev $my_var)
Or it can be much more complicated one-liner ;)
How can i do this?

Mikl
- 673
- 9
- 19
1
vote
0 answers
How to escape command arguments in phpdbg console?
I try to call command in phpdbg console:
argv --m=find --filters={"id":4}
The result is:
[Parse Error: syntax error, unexpected identifier (command or function name), expecting # (pound sign) or digits (numbers)]
--> STR_PARAM(argv=4)
--> …

Mikl
- 673
- 9
- 19