View Issue Details

IDProjectCategoryView StatusLast Update
0002291XdebugTracingpublic2024-10-04 18:56
Reporterkevinfoster Assigned To 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status newResolutionopen 
PlatformDell XPS 15 9510OSWindows 10 ProOS Version22H2
Product Version3.3.2 
Summary0002291: function tracing doesn't work on Windows 10 with Nginx 1.9.4 and PHP 8.3.12
Description

When adding xdebug_start_trace() and xdebug_stop_trace() to a function I want to trace, no trace file is generated.

Steps To Reproduce

With the above set up, I add the following to the top of the class that holds the function I want to trace:

ini_set('xdebug.output_dir', 'C:/dev-server/www/opg_code/data/misc');
ini_set('xdebug.trace_output_name', 'covercraft.postback');
ini_set('xdebug.collect_assignments', 1);
ini_set('xdebug.collect_return', 1);
ini_set('xdebug.var_display_max_children', 32);
ini_set('xdebug.var_display_max_data', 1024);
ini_set('xdebug.var_display_max_depth', 6);

I put xdebug_start_trace() at the top pf the function I want to trace and xdebug_stop_trace() before the return statement.

I had the following at the end of my php.ini:

zend_extension = xdebug
xdebug.mode = trace
xdebug.use_compression = false
xdebug.log = C:\dev-server\logs\xdebug.log

Ran the app, no trace file was generated. xdebug log said:

[22876] [Config] INFO: Trigger value for 'XDEBUG_TRIGGER' not found, falling back to 'XDEBUG_TRACE'
[22876] [Config] INFO: Trigger value for 'XDEBUG_TRACE' not found, so not activating

Added 'XDEBUG_TRACE=1' to query string, ran the app again, and no trace file was generated

Added 'xdebug.start_with_request = yes' to php.ini, ran the app again, no trace file.

Added 'xdebug.output_dir = C:\dev-server\www\opg_code\data\misc' to php.ini, ran app again, now get trace file of the app loading*, but still no trace file for the function I want to trace.

(*the app was built in Zend Framework 2, and has been updated over the last few years to keep up with changes to PHP)

Additional Information

I'm not sure when this stopped working; it's been a while since I needed to debug anything in this app, but function tracing has worked for years with just the 'zend_extension = xdebug' in the php.ini file, the ini_set calls listed above in the class in question, and the calls to xdebug_start_trace() and xdebug_stop_trace() in the particular function I needed to trace. I've spent hours going through the docs on xdebug.org, and I don't know what I'm missing.

Tagsfunction trace, not working
Operating System
PHP Version8.3.10-8.3.19

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-10-04 18:54 kevinfoster New Issue
2024-10-04 18:54 kevinfoster Tag Attached: function trace
2024-10-04 18:54 kevinfoster Tag Attached: not working