[xdebug-general] Re: Breakpoints ignored

From: Albert Drent <a.drent[@]aducom.com>
Date: Wed, 08 Apr 2015 15:44:50 +0200

Ok, figured it out. You cannot use the full path, so just app.php did
the job. Breakpoints are working.
tnx, Albert

On 8-4-2015 14:57, Albert Drent wrote:
> Hi,
> I'm currently working on an application build in Lazarus using XDebug
> and Synapse. I'm amazed how well this goes. But I do have one problem
> though and that is that if I set breakpoints these are ignored. I have
> a small php script:
>
> <?php
> include_once '/_libs/php/spapplication.php';
> class app extends spApplication {
> // variables from detail
> private $block2_DIV_1;
> private $block2_FORM_1;
> private $block2_Edit_1;
> private $block2_Edit_2;
> public function __construct() {
> parent::__construct();
> }
> }
> session_start();
> $app = new app;
> $app -> show();
> ?>
>
> I want the application to break on $app=new app; I can step through
> the code:
>
> Log opened at 2015-04-08 12:53:25
> I: Connecting to configured address/port: localhost:9000.
> I: Connected to client. :-)
> -> <init xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
> fileuri="file:///C:/wamp/www/test/app.php" language="PHP"
> protocol_version="1.0" appid="9508" idekey="1"><engine
> version="2.2.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
> Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
> (c) 2002-2014 by Derick Rethans]]></copyright></init>
>
> <- breakpoint_set -i 1 -t line -f
> C:/wamp/www/test/_libs/php/spapplication.php -n 19
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
> transaction_id="1" id="95080006"></response>
>
> <- step_into -i 1
> -> <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:///C:/wamp/www/test/app.php"
> lineno="7"></xdebug:message></response>
>
> <- breakpoint_set -i 1 -t line -f c:\wamp\www\phspeed\test\app.php -n 19
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
> transaction_id="1" id="95080003"></response>
>
> <- step_into -i 1
> -> <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:///C:/wamp/www/test/_libs/php/spapplication.php"
> lineno="64"></xdebug:message></response>
>
> <- run -i 1
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run"
> transaction_id="1" status="stopping" reason="ok"></response>
>
> Most likely I'm doing something wrong or forgetting something? If I
> step through the code, the other file (as above) is nicely opened and
> I can step through it until the application stops. I can request for
> variable info without problems. But as soon as I hit run -i 1 the
> application continues until the end of file instead of the breakpoint.
>
> Anybody?
Received on Wed Apr 08 2015 - 14:44:54 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST