mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
move the rest of the docs over
This commit is contained in:
parent
070972a316
commit
d027f17ec6
10 changed files with 429 additions and 536 deletions
|
|
@ -1 +1,31 @@
|
|||
# Xdebug
|
||||
|
||||
To use Xdebug running in a haze instance with your IDE for debugging, you need
|
||||
to tell you IDE how to properly map the path from the container to the host. The
|
||||
IDE debugger config usually looks like:
|
||||
|
||||
```json
|
||||
{
|
||||
"label": "PHP: Debug server within docker",
|
||||
"adapter": "Xdebug",
|
||||
"request": "launch",
|
||||
"port": 9003,
|
||||
"pathMappings": {
|
||||
"/var/www/html": "<sources_root_configured_in_haze.toml>",
|
||||
"/var/www/html/apps-extra": "<app_directories_configured_in_haze.toml>",
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
This would have to be adapted for detached instances.
|
||||
|
||||
### Debugging all requests
|
||||
|
||||
By default, xdebug is configured to only run for requests that containing the
|
||||
trigger (e.g. from using the xdebug browser extension, or adding
|
||||
`?XDEBUG_SESSION_START=1` to the url).
|
||||
|
||||
To enable Xdebug for all requests:
|
||||
|
||||
- Uncomment the lines in `haze [cloud-id] edit /config/php.ini`
|
||||
- Then run `haze reload [cloud-id]`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue