Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/guide/start/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@ In addition to the web application, you can access a console script via `./yii`
Use this script to run background and maintenance tasks for the application, which the
[Console Application Section](../tutorial/console-applications.md) describes.

## Debugging <span id="debugging"></span>

Yii can collect debug data for web requests and expose it through the
[Yii Dev Panel](https://yiisoft.github.io/yii-dev-panel/).

Install the debug API package:

```shell
composer require yiisoft/yii-debug-api
```

Enable debug mode in `.env`:

```dotenv
APP_DEBUG=true
```

The package registers its routes automatically. Start the application and open `/debug` to check that the debug API is
available. Then open [Yii Dev Panel](https://yiisoft.github.io/yii-dev-panel/) and set your application URL there.

Use debug mode for local development. In production, keep `APP_DEBUG=false` and don't expose debug routes publicly.
Comment thread
samdark marked this conversation as resolved.
Outdated

## Application structure <span id="application-structure"></span>

Expand Down
Loading