-dxdebug.mode=off: disables the execution of Xdebug for the current command, eg: php "-dxdebug.mode=off" -r "echo 'test';"; note that quoting might be necessary (for example, on Windows' cmd.exe)
[Xdebug]zend_extension=xdebugxdebug.log=PHP_BINARY"/../xdebug_errors.log"; WINDOWS ONLY - see php-ini.md for explanation; xdebug 3.xxdebug.mode=debugxdebug.start_with_request=yes; xdebug 2.xxdebug.remote_port=9003xdebug.client_port=9003xdebug.remote_enable=1xdebug.remote_autostart=1
older php versions (<=5.x)
zend_extension=xdebug won't work, you have to point to the dll. You have some options:
add the dll folder to the system PATH (eg. in powershell [Environment]::SetEnvironmentVariable("Path", "$env:path;c:\php\ext", "user")), then just specify the name of the dll: