View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002291 | Xdebug | Tracing | public | 2024-10-04 18:54 | 2024-10-04 18:56 |
| Reporter | kevinfoster | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Platform | Dell XPS 15 9510 | OS | Windows 10 Pro | OS Version | 22H2 |
| Product Version | 3.3.2 | ||||
| Summary | 0002291: 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'); 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 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' 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. | ||||
| Tags | function trace, not working | ||||
| Operating System | |||||
| PHP Version | 8.3.10-8.3.19 | ||||
| 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 |