Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (49 sloc) 3.517 kb
d74e3b9 @derickr Test case for (non) bug #842.
authored
1 --TEST--
2 Test for bug #842: Can't debug conditional statements without a block (TS1b)
3 --FILE--
4 <?php
5 require 'dbgp/dbgpclient.php';
6 $data = file_get_contents(dirname(__FILE__) . '/bug00842.inc');
7
8 $commands = array(
9 'step_into',
10 'breakpoint_set -t line -n 18',
11 'run',
12 'step_into',
13 'step_into',
14 'step_into',
15 'step_into',
16 'step_into',
17 'step_into',
18 );
19
20 dbgpRun( $data, $commands );
21 ?>
22 --EXPECT--
23 <?xml version="1.0" encoding="iso-8859-1"?>
24 <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///tmp/xdebug-dbgp-test.php" language="PHP" protocol_version="1.0" appid="" idekey=""><engine version=""><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2012 by Derick Rethans]]></copyright></init>
25
26 -> step_into -i 1
27 <?xml version="1.0" encoding="iso-8859-1"?>
28 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="1" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="2"></xdebug:message></response>
29
30 -> breakpoint_set -i 2 -t line -n 18
31 <?xml version="1.0" encoding="iso-8859-1"?>
32 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id=""></response>
33
34 -> run -i 3
35 <?xml version="1.0" encoding="iso-8859-1"?>
36 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="3" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="18"></xdebug:message></response>
37
38 -> step_into -i 4
39 <?xml version="1.0" encoding="iso-8859-1"?>
40 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="3"></xdebug:message></response>
41
42 -> step_into -i 5
43 <?xml version="1.0" encoding="iso-8859-1"?>
44 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="5" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="6"></xdebug:message></response>
45
46 -> step_into -i 6
47 <?xml version="1.0" encoding="iso-8859-1"?>
48 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="6" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="9"></xdebug:message></response>
49
50 -> step_into -i 7
51 <?xml version="1.0" encoding="iso-8859-1"?>
52 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="7" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="10"></xdebug:message></response>
53
54 -> step_into -i 8
55 <?xml version="1.0" encoding="iso-8859-1"?>
56 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="8" status="break" reason="ok"><xdebug:message filename="file:///tmp/xdebug-dbgp-test.php" lineno="23"></xdebug:message></response>
57
58 -> step_into -i 9
59 <?xml version="1.0" encoding="iso-8859-1"?>
60 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="9" status="stopping" reason="ok"></response>
Something went wrong with that request. Please try again.