[xdebug-general] Re: Fix return value in "computer trace output"?

From: Graham Wideman <gwlist[@]grahamwideman.com>
Date: Tue, 22 Nov 2011 19:30:09 -0800

Hi Derick,

Again thanks for the speedy comments.

Sorry to hear that issue 416 is languishing, and even more that compile on VC6 is an ordeal in general, with additional obstacles for you personally.

I think it's to your great credit that Xdebug is out there providing a service which so many rely upon. All the more credit for your efforts to make it available across OS platforms and for different versions of PHP.

By way of a note to others who may be galumphing down the same path as me, wanting to suck the Trace output into another tool to analyze it...

I wanted to use "computer format" (with return value) because it is this format that includes a field that distinguishes whether each call is to a built-in function or to a user-defined one. The format=0 output does not.

However, I later realized that this same distinction can be deduced from the format=0 output by noting whether the return record occurs on the line immediately following the call record. If not, then the call must be to a user-defined function.

All other data that appears in the format=1 output can be deduced from the format=0 output.

So I think "problem solved".

Thanks again,

-- Graham

At 11/22/2011 06:24 AM, Derick Rethans wrote:
>On Tue, 22 Nov 2011, Graham Wideman wrote:
>
>> The trace function's "computer format" output doesn't currently show
>> the return value. This is issue 416 from three years ago.
>>
>> Evidently there's a patch to fix it, but this doesn't seem to have
>> been applied.
>
>Because it breaks stuff. The user has issued a pull request now
>(https://github.com/derickr/xdebug/pull/10) but I'm waiting for some
>feedback.
>
>> Alternatively, are there instructions on how to compile for Windows?
>> I assume that, given VC6 (not quite so trivial in this day and age!)
>> the process is fairly straightforward.
>
>Yeah, it's not really. I don't really want to support people compiling
>on Windows as I'm busy enough already. Right now I don't have a Windows
>compile env myself (for VC6) although I can make VC9 builds again.
>
>cheers,
>Derick
>
>--
>Like Xdebug? Consider a donation: http://xdebug.org/donate.php
>Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
>twitter: @derickr and @xdebug
Received on Wed Nov 23 2011 - 03:30:32 GMT

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