View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002291 | Xdebug | Tracing | public | 2024-10-04 18:54 | 2024-11-27 15:57 |
Reporter | kevinfoster | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | resolved | Resolution | no change required | ||
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 | ||||
|
If you add a call to |
|
Sorry to have wasted your time, Derick; when I got no response from xdebug_info(), I figured out that I had an error in the app setup on my local dev server and all API calls were going to my staging server instead of to my local dev server. And of course, there were no calls to any xdebug functions in the service class on the staging server that contains the function I needed to trace. Once I found and fixed that error, local function tracing works as it always has. I appreciate your taking the time to reply. |
|
Hi Kevin, thanks for letting me know. These things happen! cheers, |
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 | |
2024-10-08 15:18 | derick | Assigned To | => derick |
2024-10-08 15:18 | derick | Status | new => feedback |
2024-10-08 15:18 | derick | Note Added: 0007060 | |
2024-10-08 20:04 | kevinfoster | Note Added: 0007070 | |
2024-10-08 20:04 | kevinfoster | Status | feedback => assigned |
2024-11-27 15:57 | derick | Status | assigned => resolved |
2024-11-27 15:57 | derick | Resolution | open => no change required |
2024-11-27 15:57 | derick | Note Added: 0007090 |