Answers.Body: <p>I don't think there is an option in craft to do that, but if you really wanted  to do this you can create your module and add this code inside the init function.</p>
  <pre><code>$request = Craft::$app-&gt;getRequest();
  $request-&gt;getHeaders()-&gt;set('X-Debug','enable');
  </code></pre>
  <p>Also don't forget to add your module to bootstrap.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-13T06:40:34.453Z
Answers.LastActivityDate: 2021-10-19T04:08:55.477Z
Answers.LastEditDate: 2021-10-19T04:08:55.477Z
Answers.UserDisplayName: aodihis
Body: <p>I'm trying to solve some possible performance issues caused in the logic of my site which checks for whether a user is logged in or not, to display or not display certain pieces of content.</p>
  <p><strong>Is it possible to use the debug toolbar in a browser window where I'm NOT logged in?</strong></p>
  
Tags: <users><performance><devmode><debugging>
Title: Is it possible to display the debug bar while NOT logged in?
ThreadText: # Is it possible to display the debug bar while NOT logged in?
  
  (Asked by: username_0 on 2021-10-10)
  
  I'm trying to solve some possible performance issues caused in the logic of my site which checks for whether a user is logged in or not, to display or not display certain pieces of content.
  
  **Is it possible to use the debug toolbar in a browser window where I'm NOT logged in?**
  
  **Tags:** users, performance, devmode, debugging
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-10-13. Score: 4 | Accepted answer
  
  I don't think there is an option in craft to do that, but if you really wanted to do this you can create your module and add this code inside the init function.
  
  ```
  $request = Craft::$app->getRequest();
  $request->getHeaders()->set('X-Debug','enable');
  
  ```
  
  Also don't forget to add your module to bootstrap.
  
  
  ---
  
  