From 1e1056bf61699abd694cdb719739c4a28d2a530e Mon Sep 17 00:00:00 2001 From: docsolver Date: Tue, 5 Nov 2013 02:44:51 +0100 Subject: [PATCH] Update debugger.md I wasted >1h trying to find out why the debug bar was not shown on my remote staging server. Hopefully this will help other people avoid this mistake... --- docs/guide/debugger.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/guide/debugger.md b/docs/guide/debugger.md index 768f25d..9006d9d 100644 --- a/docs/guide/debugger.md +++ b/docs/guide/debugger.md @@ -10,6 +10,17 @@ Installing and configuring How to use it ------------- +Add these lines to your config file: + +``` + 'preload' => ['debug'], + 'modules' => [ + 'debug' => ['yii\debug\Module'] + ] +``` + +**Watch out: by default the debug module only works when browsing the website from the localhost. If you want to use it on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP.** + Creating your own panels ------------------------