title: Xdebug failed install on Mac m1
body: <p>I'm trying to install Xdebug on my Mac m1, I followed this page(<a href="https://xdebug.org/docs/install" rel="noreferrer">https://xdebug.org/docs/install</a>) to install. This is the step I followed:</p>
  <p>step1 =&gt; go to cmd: arch -x86_64 sudo pecl install xdebug</p>
  <p>step2 =&gt; go to php.ini delete this line of code</p>
  <pre><code>zend_extension=&quot;xdebug.so&quot;
  </code></pre>
  <p>step3 =&gt; go to php.ini add this</p>
  <pre><code>[xdebug]
  zend_extension=/opt/homebrew/lib/php/pecl/20190902/xdebug.so
  xdebug.mode=debug
  xdebug.client_host=127.0.0.1
  xdebug.client_port=&quot;9003&quot;
  </code></pre>
  <p>step4 =&gt; go to cmd: php -v</p>
  <p><strong>The error shows:</strong></p>
  <p><a href="https://i.stack.imgur.com/Kd87U.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Kd87U.png" alt="enter image description here" /></a></p>
  <p><strong>How can I solve this problem? Thanks</strong></p>