Arquivos
hhvm/hphp/test/quick/debugger/printThis.php.expectf
T
Herman Venter 5a9d8751af Move the debugger command line test out of the C++ debugger test harness and use the standard harness.
Added a tweak to test/run to make it look for $test.in and, if there is one, to add <$test.in to the command line for running the test. Together with $file.opts and a config.hdf, this makes it possible to fire up a command line debugger for php, feed it with commands, obtain its output and check it against expected output.
2013-06-03 10:54:37 -07:00

1.1 KiB

Welcome to HipHop Debugger!
Type "help" or "?" for a complete list of commands.
 
Program %sprintThis.php loaded. Type '[r]un' or '[c]ontinue' to go.
hphpd> break printThis.php:5
Breakpoint 1 set on line 5 of printThis.php
hphpd> run
Breakpoint 1 reached at Foo::method() on line 5 of %sprintThis.php
4 function method() {
5 $other = $this;
6 }
 
hphpd> print $this
Foo Object
(
[prop] => "Hello\n"
)
 
hphpd> continue
Breakpoint 1 reached at Foo::method() on line 5 of %sprintThis.php
4 function method() {
5 $other = $this;
6 }
 
hphpd> print $this
Foo Object
(
[prop] => "Hello\n"
[prop2] => "\tThere"
)
 
hphpd> quit