Skip to content

Commit 88804e4

Browse files
Deploy preview for PR 1 🛫
1 parent ea2e5a5 commit 88804e4

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

pr-preview/pr-1/docs/installation/index.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,33 @@ <h1 id="page-title" class="page__title p-name" itemprop="headline">
256256

257257
<p>Installing PHP Debugger is straightforward and similar to installing other PHP extensions. The extension is available through PIE and can also be compiled from source. Once installed, you’ll need to configure your php.ini file to enable the extension and set up your IDE to communicate with the debugger using the DBGp protocol.</p>
258258

259+
<h2 id="configuration">Configuration</h2>
260+
261+
<p>Add the following to your <code class="language-plaintext highlighter-rouge">php.ini</code> file:</p>
262+
263+
<div class="language-ini highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="py">zend_extension</span><span class="p">=</span><span class="s">php_debugger</span>
264+
<span class="py">php_debugger.mode</span><span class="p">=</span><span class="s">debug</span>
265+
<span class="py">php_debugger.start_with_request</span><span class="p">=</span><span class="s">trigger</span>
266+
<span class="py">php_debugger.client_host</span><span class="p">=</span><span class="s">127.0.0.1</span>
267+
<span class="py">php_debugger.client_port</span><span class="p">=</span><span class="s">9003</span>
268+
</code></pre></div></div>
269+
270+
<h2 id="usage-example">Usage Example</h2>
271+
272+
<p>You can trigger breakpoints programmatically in your PHP code:</p>
273+
274+
<div class="language-php highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;?php</span>
275+
<span class="k">function</span> <span class="n">processData</span><span class="p">(</span><span class="nv">$data</span><span class="p">)</span> <span class="p">{</span>
276+
<span class="c1">// Process some data</span>
277+
<span class="nv">$result</span> <span class="o">=</span> <span class="nf">transform</span><span class="p">(</span><span class="nv">$data</span><span class="p">);</span>
278+
279+
<span class="c1">// Trigger breakpoint for debugging</span>
280+
<span class="nf">php_debugger_break</span><span class="p">();</span>
281+
282+
<span class="k">return</span> <span class="nv">$result</span><span class="p">;</span>
283+
<span class="p">}</span>
284+
</code></pre></div></div>
285+
259286

260287
</section>
261288

pr-preview/pr-1/feed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://php-debugger.github.io/website/pr-preview/pr-1/feed.xml" rel="self" type="application/atom+xml" /><link href="https://php-debugger.github.io/website/pr-preview/pr-1/" rel="alternate" type="text/html" /><updated>2026-05-15T14:38:19+00:00</updated><id>https://php-debugger.github.io/website/pr-preview/pr-1/feed.xml</id><title type="html"> </title><subtitle>A PHP debugger extension focused on step debugging with near-zero overhead.</subtitle><author><name>PHP Debugger</name></author></feed>
1+
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://php-debugger.github.io/website/pr-preview/pr-1/feed.xml" rel="self" type="application/atom+xml" /><link href="https://php-debugger.github.io/website/pr-preview/pr-1/" rel="alternate" type="text/html" /><updated>2026-05-15T14:42:44+00:00</updated><id>https://php-debugger.github.io/website/pr-preview/pr-1/feed.xml</id><title type="html"> </title><subtitle>A PHP debugger extension focused on step debugging with near-zero overhead.</subtitle><author><name>PHP Debugger</name></author></feed>

0 commit comments

Comments
 (0)