Arquivos
hhvm/hphp/test/quick/debugger/break2.php.expectf
T
Herman Venter b7ed094ed2 Use the same output formatting for = command as is used for the print command.
The = command uses formatting that is user customizable and subtly different, by default, from the formatting used by the print command and the variable command. This has historical roots. It seems that the debugger used to use print_r, which is brittle, and the customization hook was introduced to work around this brittleness. This work around is no longer necessary since the debugger now has its own, robust way of formatting values as strings. Also, the difference between = and print is a perennial source of confusion for debugger users.
2013-07-26 11:31:15 -07:00

59 linhas
1.7 KiB
Plaintext

Program %s/break2.php loaded. Type '[r]un' or '[c]ontinue' to go.
break %s/break2.php:7
Breakpoint 1 set on line 7 of %s/break2.php
But wont break until file %s/break2.php has been loaded.
break foo2()
Breakpoint 2 set upon entering foo2()
But wont break until function foo2 has been loaded.
break cls2::pubObj()
Breakpoint 3 set upon entering cls2::pubObj()
But wont break until class cls2 has been loaded.
break cls2::pubCls()
Breakpoint 4 set upon entering cls2::pubCls()
But wont break until class cls2 has been loaded.
break list
1 ALWAYS on line 7 of %s/break2.php (unbound)
2 ALWAYS upon entering foo2() (unbound)
3 ALWAYS upon entering cls2::pubObj() (unbound)
4 ALWAYS upon entering cls2::pubCls() (unbound)
run
break2.php loaded
Program %s/break2.php exited normally.
@ foo2('test_break6')
Breakpoint 2 reached at foo2() on line 6 of %s/break2.php
5 function foo2($x) {
6 $y = $x.'_suffix';
7 error_log($y);
break list
1 ALWAYS on line 7 of %s/break2.php
2 ALWAYS upon entering foo2()
3 ALWAYS upon entering cls2::pubObj()
4 ALWAYS upon entering cls2::pubCls()
continue
Breakpoint 1 reached at foo2() on line 7 of %s/break2.php
6 $y = $x.'_suffix';
7 error_log($y);
8 }
@ $break6=new cls2()
@ $break6->pubObj('test_break6')
Breakpoint 3 reached at cls2::pubObj() on line 12 of %s/break2.php
11 public function pubObj($x) {
12 error_log("pubObj2:".$x);
13 }
continue
pubObj2:test_break6
@ cls2::pubCls('test_break6')
Breakpoint 4 reached at cls2::pubCls() on line 15 of %s/break2.php
14 public static function pubCls($x) {
15 error_log("pubCls2:".$x);
16 }
break clear all
All breakpoints are cleared.
continue
pubCls2:test_break6
quit