[xdebug-general] filename for lambda used file: scheme instead of dbgp:

From: FUJINAKA Tohru <tohru[@]nakarika.com>
Date: Sun, 12 Oct 2008 20:04:29 +0900

Hello,

With 2.1.0-dev, when Xdebug breaks in a lambda function it returns
file: schemed uri instead of dbgp:, I think the latter should be used
as according to the specs.

Here's a script and a log.

-- [script] --
<?php

$func = create_function('', 'return 5;');
echo $func();
-- [end of script] --

-- [excerpt log] --
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1"
 xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
 fileuri="file:///var/www/dbgp/index.php"
 language="PHP"
  protocol_version="1.0"
  appid="39960"
  idekey="default">
 <engine version="2.1.0-dev">
</init>

(cmd)step_into -i 30597
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
 xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
 command="step_into"
 transaction_id="30597"
 status="break"
 reason="ok">
 <xdebug:message filename="file:///home/trac/www/dbgp/index.php%283%29%20:%20runtime-created%20function" lineno="1">
 </xdebug:message>
</response>
-- [end of excerpt log] --

Best regards,

-- 
FUJINAKA Tohru <tohru[@]nakarika.com>
Received on Sun Oct 12 2008 - 13:04:53 BST

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