Arquivos
hhvm/hphp/test/quick/debugger/break3.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

96 linhas
2.6 KiB
Plaintext

Program %s/break3.php loaded. Type '[r]un' or '[c]ontinue' to go.
continue
break3.php loaded
Program %s/break3.php exited normally.
break \TestNs\foo()
Breakpoint 1 set upon entering TestNs\foo()
@ \TestNs\foo('test_break1')
Breakpoint 1 reached at TestNs\foo() on line 7 of %s/break3.php
6 function foo($x) {
7 $y = $x.'_TestNs';
8 \error_log($y);
variable
$x = "test_break1"
break clear all
All breakpoints are cleared.
continue
test_break1_TestNs
break TestNs\cls::pubObj()
Breakpoint 1 set upon entering TestNs\cls::pubObj()
@ $break8=new \TestNs\cls()
@ $break8->pubObj('test_break2')
Breakpoint 1 reached at TestNs\cls::pubObj() on line 13 of %s/break3.php
12 public function pubObj($x) {
13 \error_log("pubObj:".$x);
14 }
variable
$x = "test_break2"
break clear all
All breakpoints are cleared.
break \TestNs\break8->pubObj()
Breakpoint was not set in right format.
break TestNs\cls::break8->pubObj()
Breakpoint was not set in right format.
continue
pubObj:test_break2
break \TestNs\cls::pubCls()
Breakpoint 1 set upon entering TestNs\cls::pubCls()
@ \TestNs\cls::pubCls('test_break3')
Breakpoint 1 reached at TestNs\cls::pubCls() on line 16 of %s/break3.php
15 public static function pubCls($x) {
16 \error_log("pubCls:".$x);
17 }
variable
$x = "test_break3"
break clear all
All breakpoints are cleared.
continue
pubCls:test_break3
break \TestNs\Nested\foo()
Breakpoint 1 set upon entering TestNs\Nested\foo()
@ \TestNs\Nested\foo('test_break4')
Breakpoint 1 reached at TestNs\Nested\foo() on line 23 of %s/break3.php
22 function foo($x) {
23 $y = $x.'_TestNs\Nested';
24 \error_log($y);
variable
$x = "test_break4"
break clear all
All breakpoints are cleared.
continue
test_break4_TestNs\Nested
break TestNs\Nested\cls::pubObj()
Breakpoint 1 set upon entering TestNs\Nested\cls::pubObj()
@ $break8=new \TestNs\Nested\cls()
@ $break8->pubObj('test_break5')
Breakpoint 1 reached at TestNs\Nested\cls::pubObj() on line 29 of %s/break3.php
28 public function pubObj($x) {
29 \error_log("pubObj:".$x.'_TestNs\Nested');
30 }
variable
$x = "test_break5"
break clear all
All breakpoints are cleared.
continue
pubObj:test_break5_TestNs\Nested
break \TestNs\Nested\cls::pubCls()
Breakpoint 1 set upon entering TestNs\Nested\cls::pubCls()
@ \TestNs\Nested\cls::pubCls('test_break6')
Breakpoint 1 reached at TestNs\Nested\cls::pubCls() on line 32 of %s/break3.php
31 public static function pubCls($x) {
32 \error_log("pubCls:".$x.'_TestNs\Nested');
33 }
variable
$x = "test_break6"
break clear all
All breakpoints are cleared.
continue
pubCls:test_break6_TestNs\Nested
quit