Add debug builds section in the README

This commit is contained in:
Shivam Mathur 2022-10-24 03:34:36 +05:30
parent 48fb8e1194
commit 6652a09da6
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -42,6 +42,7 @@ Setup PHP with required extensions, php.ini configuration, code-coverage support
- [Basic Setup](#basic-setup)
- [Matrix Setup](#matrix-setup)
- [Nightly Build Setup](#nightly-build-setup)
- [Debug Build Setup](#debug-build-setup)
- [Thread Safe Setup](#thread-safe-setup)
- [Force Update Setup](#force-update-setup)
- [Verbose Setup](#verbose-setup)
@ -540,6 +541,23 @@ steps:
tools: php-cs-fixer, phpunit
```
### Debug Build Setup
> Set up a PHP build with debugging symbols.
- Production release builds of PHP without debugging symbols are set up by default.
- You can use the `debug` environment variable to set up a build with debugging symbols for PHP 5.6 and above.
```yaml
steps:
- name: Setup PHP with debugging symbols
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
env:
debug: true # specify true or false
```
### Thread Safe Setup
> Set up `TS` or `NTS` PHP on `Windows`.