Implemented xdebug html tracing output
[hiphop-php.git] / hphp / test / slow / ext_xdebug / remote_breakpoint_set.test
blob73d09c7831d1a05f1e347c7e51c3efec54675047
1 <?php
2 // Test non-main file line breaks
3 require('remote_breakpoint_set_helper.inc');
5 // Large-line line breakpoints
6 var_dump(bar(new Foo()));
8 // Test call breakpoints
9 call();
11 // Test method breakpoints
12 (new Foo())->method();
13 (new Foo())->method2();
15 // Test return breakpoints
16 var_dump(ret(10));
17 var_dump(ret(10));
19 // Test hit conitions
20 for ($i = 0; $i < 10; $i++) {
21   var_dump($i + 1);
22
24 // Test exception breakpoints
25 try {
26   echo "About to throw an exception\n";
27   throw new Exception("Hello world!");
28 } catch (Exception $e) {
29   echo "Caught the exception!\n";