View Issue Details

IDProjectCategoryView StatusLast Update
0000989XdebugUncategorizedpublic2016-11-28 23:37
Reporterszoper Assigned To 
PriorityurgentSeverityblockReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version2.2.3 
Summary0000989: Tracing does not work with PHP 5.5.5
Description

I've been using Xdebug for several months, starting with PHP 5.4 and now with 5.5. Debugging has been working all the time, but recently I wanted to trace an app for the first time.

I've followed a few different tutorials found online and all their instructions, but as far as I know it all comes down to one line:
xdebug.auto_trace = 1

I can see from phpinfo() output that this option is On, but no trace file is generated. I've tried different values combination for: auto_trace, trace_enable_trigger and trace_output_dir, but to no avail.
I've even tried putting xdebug_start_trace() and xdebug_stop_trace() - nothing. xdebug_get_tracefile_name() returns false no matter what I do.

I've tried the same thing on other system with PHP 5.3.6 and it worked with only auto_trace=1.

Steps To Reproduce
  1. Install PHP 5.5.5 and Xdebug 2.2.3.
  2. Set xdebug.auto_trace to On.
  3. Watch the directory pointed by xdebug.trace_output_dir. Make sure the persmissions are 0777.
  4. Refresh your page and notice that no new tracefiles are created.
Additional Information

Output of phpinfo(): http://pastebin.com/79dpzjB4 (link valid until October 29th).

TagsNo tags attached.
Operating System
PHP Version5.5.5-5.5.9

Activities

kenorb

2013-11-05 15:54

reporter   ~0002601

The trace files are generated for me using PHP 5.5.3 and the latest XDebug.

szoper

2013-11-06 18:22

reporter   ~0002604

Could you check PHP 5.5.5? :-)

webdeveloper

2013-11-08 19:57

reporter   ~0002605

I have exactly the same problem. Would love to see a fix for this.

derick

2013-11-11 10:36

administrator   ~0002607

This works just fine for me:

derick@whisky:~/dev/php/xdebug-xdebug $ rm -rf /tmp/trace.log.xt

[GIT: master][PHP: 5.5.5 ]
derick@whisky:~/dev/php/xdebug-xdebug $ php -dxdebug.auto_trace=1 -r "echo sqrt(42);"
6.4807406984079

[GIT: master][PHP: 5.5.5 ]
derick@whisky:~/dev/php/xdebug-xdebug $ cat /tmp/trace.2499090303.xt
TRACE START [2013-11-11 10:34:20]
0.0001 261472 -> {main}() Command line code:0
0.0002 261712 -> sqrt() Command line code:1
0.0004 8376
TRACE END [2013-11-11 10:34:20]

I can't see your pastebin anymore, please attach a file with it to this report. However, I don't think there is a real problem here as all the tests I have for Xdebug pass as well.

szoper

2013-11-11 11:05

reporter   ~0002610

Ok, so we're making progress. :) Seems like your CLI example works after resetting my xdebug settings, though I'm pretty sure I've already tried that. I do get trace file for CLI "sqrt()" example.
I still don't get anything for a website served by Apache. My default setup provided by ArchLinux distro uses the same php.ini for both Apache module and CLI, but nevertheless I'm attaching phpinfo() output for both these cases. Hope you see something I don't. :)

webdeveloper

2013-11-12 11:43

reporter   ~0002612

I've also attached my phpinfo() output. and can confirm that I have exactly the same issue as szoper, auto_trace does not seem to create log files in the specified directory(which has full writing permissions) for websites served by Apache.

derick

2016-11-28 21:05

administrator   ~0003820

Is this still a problem for you?

szoper

2016-11-28 22:09

reporter   ~0003836

Nope, I haven't used Xdebug for tracing since then.

derick

2016-11-28 23:37

administrator   ~0003841

Okay. I'll close this then. Please open a new issue if you run into any problems with Xdebug again.