Skip to content

Commit

Permalink
add Check the evaluated PHP on debug docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jun 26, 2024
1 parent 81f089e commit 8473125
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion content/documentation/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,18 @@ Additionally, you can also use `dd()` to dump and die the execution of the progr
(php/dd (+ 5 5))
# OUTPUT:
10
```
```

## Check the evaluated PHP

You can keep the generated temporal PHP files for debugging purposes. Useful when you see an error occurring on `/private/var/folders/qq/dvftwj.../T/__phelV2KvGD` but the file does not exist. Read the [docs](/documentation/configuration/#keepgeneratedtempfiles).

```php
<?php # phel-config-local.php

return (require __DIR__ . '/phel-config.php')
->setKeepGeneratedTempFiles(true)
;
```

> TIP: Add this file to the `.gitignore` of the project, so you can have control over the configuration while on development without changing the global config.

0 comments on commit 8473125

Please sign in to comment.