1 Program %s/exception1.php loaded. Type '[r]un' or '[c]ontinue' to go.
3 Breakpoint 1 set right before throwing MyException
4 But note that class MyException has yet been loaded.
6 1%r\x09%rALWAYS right before throwing MyException (unbound)
8 Program %s/exception1.php exited normally.
9 exception NotAnException
10 Breakpoint 2 not set right before throwing NotAnException
11 Because class NotAnException is not an exception.
13 1%r\x09%rALWAYS right before throwing MyException
15 All breakpoints are cleared.
17 Breakpoint 1 set right before throwing Exception
19 1%r\x09%rALWAYS right before throwing Exception
21 Breakpoint 1 reached: Throwing Exception at throw_exception() on line 11 of %s/exception1.php
22 10 function throw_exception() {
23 11* throw new Exception();
27 All breakpoints are cleared.
29 Hit a php exception : exception 'Exception' with message '' in %s/exception1.php:11
31 #0 (1): throw_exception()
36 Breakpoint 1 set right before throwing MyException
38 Breakpoint 1 reached: Throwing MyException at throw_myexception() on line 15 of %s/exception1.php
39 14 function throw_myexception() {
40 15* throw new MyException();
44 All breakpoints are cleared.
46 Hit a php exception : exception 'MyException' with message '' in %s/exception1.php:15
48 #0 (1): throw_myexception()
53 Breakpoint 1 set right after an error
54 @ error_undefined_class()
55 Breakpoint 1 reached: An error occurred at error_undefined_class() on line 19 of %s/exception1.php
56 18 function error_undefined_class() {
57 19* $x = new NoSuchClass();
60 Error Message: Class undefined: NoSuchClass
62 All breakpoints are cleared.
64 Hit fatal : Class undefined: NoSuchClass
65 #0 at %s/exception1.php:19]
66 #1 error_undefined_class(), called at [:1]
67 #2 include(), called at [:1]
68 #3 include(), called at [:0]
71 Breakpoint 1 set right before throwing Exception
72 @ \Outer\throw_exception()
73 Breakpoint 1 reached: Throwing Exception at Outer\throw_exception() on line 29 of %s/exception1.php
74 28 function throw_exception() {
75 29* throw new \Exception();
79 All breakpoints are cleared.
81 Hit a php exception : exception 'Exception' with message '' in %s/exception1.php:29
83 #0 (1): Outer\throw_exception()
87 exception \Outer\MyException
88 Breakpoint 1 set right before throwing Outer\MyException
89 @ Outer\throw_myexception()
90 Breakpoint 1 reached: Throwing Outer\MyException at Outer\throw_myexception() on line 33 of %s/exception1.php
91 32 function throw_myexception() {
92 33* throw new MyException();
96 All breakpoints are cleared.
98 Hit a php exception : exception 'Outer\MyException' with message '' in %s/exception1.php:33
100 #0 (1): Outer\throw_myexception()
105 Breakpoint 1 set right after an error
106 @ \Outer\error_undefined_class()
107 Breakpoint 1 reached: An error occurred at Outer\error_undefined_class() on line 37 of %s/exception1.php
108 36 function error_undefined_class() {
109 37* $x = new NoSuchClass();
112 Error Message: Class undefined: Outer\NoSuchClass
114 All breakpoints are cleared.
116 Hit fatal : Class undefined: Outer\NoSuchClass
117 #0 at %s/exception1.php:37]
118 #1 Outer\error_undefined_class(), called at [:1]
119 #2 include(), called at [:1]
120 #3 include(), called at [:0]
123 Breakpoint 1 set right before throwing Exception
124 @ \Outer\Inner\throw_exception()
125 Breakpoint 1 reached: Throwing Exception at Outer\Inner\throw_exception() on line 47 of %s/exception1.php
126 46 function throw_exception() {
127 47* throw new \Exception();
131 All breakpoints are cleared.
133 Hit a php exception : exception 'Exception' with message '' in %s/exception1.php:47
135 #0 (1): Outer\Inner\throw_exception()
139 exception Outer\Inner\MyException
140 Breakpoint 1 set right before throwing Outer\Inner\MyException
141 @ Outer\Inner\throw_myexception()
142 Breakpoint 1 reached: Throwing Outer\Inner\MyException at Outer\Inner\throw_myexception() on line 51 of %s/exception1.php
143 50 function throw_myexception() {
144 51* throw new MyException();
148 All breakpoints are cleared.
150 Hit a php exception : exception 'Outer\Inner\MyException' with message '' in %s/exception1.php:51
152 #0 (1): Outer\Inner\throw_myexception()
157 Breakpoint 1 set right after an error
158 @ \Outer\Inner\error_undefined_class()
159 Breakpoint 1 reached: An error occurred at Outer\Inner\error_undefined_class() on line 55 of %s/exception1.php
160 54 function error_undefined_class() {
161 55* $x = new NoSuchClass();
164 Error Message: Class undefined: Outer\Inner\NoSuchClass
166 All breakpoints are cleared.
168 Hit fatal : Class undefined: Outer\Inner\NoSuchClass
169 #0 at %s/exception1.php:55]
170 #1 Outer\Inner\error_undefined_class(), called at [:1]
171 #2 include(), called at [:1]
172 #3 include(), called at [:0]