There is an awk command that processes the trace files that is giving people some troubles, and is probably more trouble than its worth to debug.
It's also a *nix dependency that is giving some windows users some problems.
So one task is to re-write it in native PHP.
I hope to take a look at this within the next 2-3 days, and at least release a new 5.x-dev release.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | trace.1195524099.xt_.txt | 895.4 KB | teshager |
Comments
Comment #1
teshager commentedI'm adding a unparsed raw xt file for your reference
Comment #2
KentBye commentedThanks.
On first look I can already tell that you're going to have problems with it because it's missing the 5th column with the memory usage!
Here's a snippet of my working trace:
Here's a snippet of your trace that is breaking:
I also notice that you have a 2.1.0-dev version, and it looks like they might have changed the specs on the trace_format. The latest official release from xdebug is 2.0.2, and so it looks like you're really on the bleeding edge with 2.1.0-dev
You may want to poke around to see why you're not getting any memory usage data on that fifth column.
Comment #3
nadavoid commentedMy log files also were in the wrong format. I was using the 2.1.0-dev because that's what was bundled in the latest version of Komodo. I couldn't find an option for xdebug to put into my .htaccess file that would correct the format. I downloaded the xdebug.so from your site and used it in place of the 2.1.0-dev one, and the logging is in the correct format now.
Comment #4
KentBye commentedhmm... Well, maybe I need to put in a special note for Komodo users then.
It's nice to know that there is a workaround for it by downloading this xdebug.so version on my website, but it's annoying that they're shipping a xdebug.so file that has a different trace log format. Ugh....
@c4rider: Try downloading and pointing to this xdebug.so file.
The underlying issue of re-writing the awk command in PHP remains, but note to self that there may need to be some additional logic that checks the trace log version number.
Comment #5
teshager commentedHi Kent,
I have been out of town and just saw your note. I will upload the xdebug you've recommended and will report back my findings in few hours. Thanks for all the help!
BTW, I'm also using the newest Komodo release (4.2)
/c4rider
Comment #6
teshager commentedHi Kent,
Is this for PHP 5.1 or 4.4? I tried the xdebug for both and would not start my apache server when used in 4.4 and generates the following error message when run with 5.1:
PHP Fatal error: Call to undefined function xdebug_get_tracefile_name() in /Applications/MAMP/htdocs/d53/sites/default/modules/visualize_backtrace/visualize_backtrace.module
Will need to do further debugging, FYI.
/c4rider
Comment #7
KentBye commentedGood news.
I've eliminated the awk file and replaced it with a PHP-native approach, and it turns out that it actually accounts for empty columns whereas the awk command didn't.
This means that the visualize_backtrace.module will properly account for the missing memory data in that 2.1.0-dev XDebug trace file.
I haven't uploaded the results yet since I have to rewrite some other things and fix a couple of other bugs.
But I hope to get a dev release out soon for testing.
Comment #8
KentBye commentedOkay.
I ripped out the awk command in the dev version of Visualize Backtrace, which can be downloaded with this terminal command:
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-5 -d visualize_backtrace contributions/modules/visualize_backtrace
There are some other tweaks that need to be made, but could someone on a Windows machine or who was having troubles give this version a few tests.
NOTE: If you have the jQuery UI Backport module installed, then you will also have sortable tables!
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.