No way to list the current stack/frames #100

Closed
dshafik opened this Issue Jun 29, 2014 · 1 comment

Projects

None yet

2 participants

@dshafik
Contributor
dshafik commented Jun 29, 2014

There is no way to list the current stack/depth, so calls to frame are pretty much a mystery.

A backtrace-like command to show the current stack would be great.

@bwoebi
Collaborator
bwoebi commented Jun 29, 2014

Actually, we have back command, which is aliased with t … I just see that it isn't documented in main help...

phpdbg root# ./phpdbg test.php 
phpdbg> b phpdbg::isgreat
[Breakpoint #0 added at phpdbg::isgreat]
phpdbg> r
[Breakpoint #0 in phpdbg::isgreat() at /private/var/root/php-src/sapi/phpdbg/test.php:11, hits: 1]
 00010: 
>00011:     public function isGreat($greeting = null) {
 00012:         printf($this->sprintf, __METHOD__, $greeting);
phpdbg> t
frame #0: phpdbg->isGreat(greeting=PHP Rocks!!) at /private/var/root/php-src/sapi/phpdbg/test.php:12
frame #1: {main} at /private/var/root/php-src/sapi/phpdbg/test.php:38
@bwoebi bwoebi added a commit that closed this issue Jun 29, 2014
@bwoebi bwoebi Inform about back command existence in help - Fixes krakjoe/phpdbg#100
No way to list the current stack/frames
d298425
@bwoebi bwoebi closed this in d298425 Jun 29, 2014
@php-pulls php-pulls pushed a commit to php/php-src that referenced this issue Jun 30, 2014
@dstogov dstogov Merge branch 'master' into test
* master: (67 commits)
  remove the NEWS entry for the reverted fpm fix
  remove the NEWS entry for the reverted fpm fix
  remove the NEWS entry for the reverted fpm fix
  Revert "Fix Bug #67530 	error_log=syslog ignored"
  --enable-fpm for the travis build
  fix the last fpm NEWS entry, the other bug is related, but not the same what we fixed here
  NEWS
  NEWS
  Fix bug #67091: make install fails to install libphp5.so on FreeBSD 10.0
  adding NEWS entry for the fix for bug #65641
  Updated NEWS file for recent phpdbg fixes
  Fixed issue krakjoe/phpdbg#94 - List behavior is inconsistent
  Fix issue krakjoe/phpdbg#97 - list now appends a newline if there is none The prompt should always ensure it is on a newline
  Fixed test
  Inform about back command existence in help - Fixes krakjoe/phpdbg#100 No way to list the current stack/frames
  Fix issue krakjoe/phpdbg#98 break if does not seem to work
  Fix issue krakjoe/phpdbg#99 register function has the same behavior as run
  Fix readline/libedit (Thanks to @remicollet)
  Replace incorrect `E` command with `ev` in watch help
  Fix typo in `finish` help
  ...

Conflicts:
	Zend/zend_ast.c
	Zend/zend_highlight.c
	Zend/zend_indent.c
	ext/spl/spl_array.c
	ext/spl/spl_observer.c
	ext/standard/info.c
acfbb7b
@php-pulls php-pulls pushed a commit to php/php-src that referenced this issue Jul 2, 2014
@weltling weltling Merge remote-tracking branch 'origin/PHP-5.6' into str_size_and_int64…
…_56_backport

* origin/PHP-5.6: (170 commits)
  Fixed possible crash because of race conditions on modifying constants in shared memory
  remove the NEWS entry for the reverted fpm fix
  remove the NEWS entry for the reverted fpm fix
  remove the NEWS entry for the reverted fpm fix
  Revert "Fix Bug #67530 	error_log=syslog ignored"
  --enable-fpm for the travis build
  fix the last fpm NEWS entry, the other bug is related, but not the same what we fixed here
  NEWS
  NEWS
  Fix bug #67091: make install fails to install libphp5.so on FreeBSD 10.0
  adding NEWS entry for the fix for bug #65641
  Updated NEWS file for recent phpdbg fixes
  Fixed issue krakjoe/phpdbg#94 - List behavior is inconsistent
  Fix issue krakjoe/phpdbg#97 - list now appends a newline if there is none The prompt should always ensure it is on a newline
  Fixed test
  Inform about back command existence in help - Fixes krakjoe/phpdbg#100 No way to list the current stack/frames
  Fix issue krakjoe/phpdbg#98 break if does not seem to work
  Fix issue krakjoe/phpdbg#99 register function has the same behavior as run
  Fix readline/libedit (Thanks to @remicollet)
  Replace incorrect `E` command with `ev` in watch help
  ...

Conflicts:
	Zend/zend_compile.c
	ext/standard/basic_functions.c
	ext/standard/http_fopen_wrapper.c
	ext/standard/var.c
	ext/tokenizer/tokenizer_data.c
	sapi/phpdbg/phpdbg_list.c
1a50c27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment