5a9d8751af
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.
1.1 KiB
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
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