<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Xdebug to profile PHP on pfSense]]></title><description><![CDATA[<p dir="auto">I'm trying to get a handle on what's causing my slow dashboard load times. See <a href="https://forum.netgate.com/topic/171920/dashboard-very-slow-to-load-6100">post</a>.</p>
<p dir="auto">Was wondering about using <a href="https://xdebug.org/" target="_blank" rel="noopener noreferrer nofollow ugc">Xdebug</a> to do some profiling of the PHP execution. Is that still possible with the latest snapshots? I do remember playing around with it circa 2018 and getting it hooked up via <a href="https://github.com/xdebug/vscode-php-debug" target="_blank" rel="noopener noreferrer nofollow ugc">VSCode extension</a>, but it's been a while.</p>
<p dir="auto">I see <a href="https://docs.netgate.com/pfsense/en/latest/development/additional-php-modules.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.netgate.com/pfsense/en/latest/development/additional-php-modules.html</a> mentions it but doesn't have much detail on usage.</p>
]]></description><link>https://forum.netgate.com/topic/171936/using-xdebug-to-profile-php-on-pfsense</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 13:08:02 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/171936.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 May 2022 11:39:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Xdebug to profile PHP on pfSense on Thu, 26 Feb 2026 16:41:02 GMT]]></title><description><![CDATA[<p dir="auto">I was able to compile what seems to be a working <code>xdebug.so</code> module against <code>FreeBSD-16.0-CURRENT-amd64-zfs-20260216-e4bcfe4ebf03-283952</code> &amp; <code>php85-8.5.2</code></p>
<p dir="auto">I've got a decent set of steps one can follow to compile this and get it working. It's a bit of work to document it all though, so if anyone <em>wants</em> to see this please post here.</p>
]]></description><link>https://forum.netgate.com/post/1238495</link><guid isPermaLink="true">https://forum.netgate.com/post/1238495</guid><dc:creator><![CDATA[luckman212]]></dc:creator><pubDate>Thu, 26 Feb 2026 16:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to Using Xdebug to profile PHP on pfSense on Wed, 04 May 2022 17:35:49 GMT]]></title><description><![CDATA[<p dir="auto">If it compiles against the same version of PHP it should be OK. At the time it was removed it was broken and I'm not sure if anyone fixed it, but give it a shot. Maybe upstream did something different in the meantime it has been a few years.</p>
]]></description><link>https://forum.netgate.com/post/1040797</link><guid isPermaLink="true">https://forum.netgate.com/post/1040797</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 04 May 2022 17:35:49 GMT</pubDate></item><item><title><![CDATA[Reply to Using Xdebug to profile PHP on pfSense on Wed, 04 May 2022 14:50:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a> Nope all I get is 1 giant bar for the initial pageload, so no real insight on the debug console. E.g.</p>
<p dir="auto"><img src="/assets/uploads/files/1651675760188-3bc97951-780f-4179-a225-5a08ebb6032c-cleanshot-2022-05-04-at-10.48.35.png" alt="3bc97951-780f-4179-a225-5a08ebb6032c-CleanShot 2022-05-04 at 10.48.35.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Unless you think there's a reason why it definitely <em>won't</em> work, I guess I can try my other idea of compiling the module(s) on another FreeBSD 12.3 system and moving them over.</p>
]]></description><link>https://forum.netgate.com/post/1040766</link><guid isPermaLink="true">https://forum.netgate.com/post/1040766</guid><dc:creator><![CDATA[luckman212]]></dc:creator><pubDate>Wed, 04 May 2022 14:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to Using Xdebug to profile PHP on pfSense on Wed, 04 May 2022 14:08:08 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure what the other devs do there. I rarely dig into those kinds of problems, though in some cases it's fairly obvious if you watch the network pane on the browser debug as it requests/receives data and you can see which things take longer to come back.</p>
]]></description><link>https://forum.netgate.com/post/1040754</link><guid isPermaLink="true">https://forum.netgate.com/post/1040754</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 04 May 2022 14:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to Using Xdebug to profile PHP on pfSense on Wed, 04 May 2022 14:00:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a> Ok, that's what I thought. How do you guys debug performance then? Is there another way? Or can the module be compiled on another FreeBSD system and then copied over?</p>
]]></description><link>https://forum.netgate.com/post/1040752</link><guid isPermaLink="true">https://forum.netgate.com/post/1040752</guid><dc:creator><![CDATA[luckman212]]></dc:creator><pubDate>Wed, 04 May 2022 14:00:37 GMT</pubDate></item><item><title><![CDATA[Reply to Using Xdebug to profile PHP on pfSense on Wed, 04 May 2022 12:38:09 GMT]]></title><description><![CDATA[<p dir="auto">We used to include the xdebug module but we dropped it in ~2018 because it failed to build with the PHP version we were upgrading to. We never looked into it again after since nobody seemed to care and it was extra technical debt we didn't want to keep carrying.</p>
]]></description><link>https://forum.netgate.com/post/1040736</link><guid isPermaLink="true">https://forum.netgate.com/post/1040736</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 04 May 2022 12:38:09 GMT</pubDate></item></channel></rss>