phpdbg aims to be a lightweight, powerful, easy to use debugging platform for PHP 5.4+
Questions tagged [phpdbg]
26 questions
1
vote
0 answers
remove non-user constant php
I'm trying to remove the STDIN constant for debugging purposes, however
phpdbg> ev runkit_constant_remove('STDIN')
[PHP Warning: runkit_constant_remove(): Only user defined constants may be removed. in eval()'d code on line 1]
So I would like to…

timwaagh
- 303
- 3
- 14
0
votes
1 answer
Phpunit error "This build of PHPDBG does not support code coverage"
I'm getting error "This build of PHPDBG does not support code coverage" when try to run phpunit with coverage with phpdbg. I found in PHAR line which generate this error:
if (!\function_exists('PHPUnit\\phpdbg_start_oplog')) {
…

drewblin
- 1
- 1
0
votes
2 answers
phpdbg hits memory limit when mutation testing with Infection
I keep getting a memory exhausted error when trying to run infection tests using phpdbg. I've tried setting the -d memory_limit but it seems to get ignored.
Below is some sample output:
$ phpdbg -qrr -d memory_limit=1G vendor/bin/infection
You are…

Xethron
- 1,116
- 9
- 24
0
votes
0 answers
Coverage PHPT tests in PHPUnit
Run simple PHPT test
--FILE--
--EXPECT--
int(1)
by PHPUnit command with phpdbg. But I've got the error
TypeError: Return value of PHPUnit\Runner\PhptTestCase::cleanupForCoverage() must be of the type array, boolean returned…

Anastasia Bashkirtseva
- 87
- 10
0
votes
1 answer
Have phpdbg report the SAPI as "cli" instead of "phpdbg"
When running phpdbg on the command line, the value returned from php_sapi_name() is "phpdbg" rather than "cli", which upsets some of my code that checks to ensure the code is being ran on the CLI and not in a web service.
I would rather not change…

Courtney Miles
- 3,756
- 3
- 29
- 47
0
votes
0 answers
Is there a way to limit phpdbg to specific files or paths?
While stepping through code with PHPDBG, is there an easy way to skip over code from other paths.
Specifically, I'm stepping through lots of code for phpunit/mock or composer's class-loader while trying to track down a failure in my code that…

rrehbein
- 4,120
- 1
- 17
- 23
0
votes
1 answer
TravisCI: How to use xdebug or phpdbg according to PHP version (~5.6 or ~7.0)
I've seen that XDebug throws Segmentation Fault under PHP 7, that has been happening me and many others. So I got to the solution of running phpdbg with PHP 7 instead of using XDebug.
My question is how should I configure travis.yml to execute one…

alariva
- 2,051
- 1
- 22
- 37
0
votes
0 answers
How to terminate unresponsive phpdbg console?
I wonder how to terminate phpdbg process from within its interactive console.
There were several situations when i need it.
First, when i try to print object content with infinite recursion.
Second, when it hangs after for example usage of bad…

Mikl
- 673
- 9
- 19
0
votes
1 answer
Installing phpdbg on the Mac
I'd like to install phpdbg on my Mac but am falling at the first hurdle of the installation guide here:
http://phpdbg.com/docs/introduction
There is no /usr/src/php-src/sapi on my Mac and I can't find the php-src directory on my system.
Any…

Snowcrash
- 80,579
- 89
- 266
- 376
0
votes
0 answers
how to set phpdbg colours
I'm using phpdbg and I see that you can change the colour of errors and output. This would be very useful as it is not so easy to read when it is all just in one colour.
But I can't get it to work. Am I doing it wrong or is it known not to be…

Graham
- 7,807
- 20
- 69
- 114
0
votes
1 answer
PHPdbg Installation error
I am New to phpdbg. I am trying to install phpdbg using following steps: which is mentioned on site phpdbg
cd /usr/src/php-src/sapi
git clone https://github.com/krakjoe/phpdbg
cd ../
./buildconf --force
./config.nice
make -j8
make install-phpdbg
on…

Ganesh Patil
- 670
- 1
- 5
- 22