Skip to content

Commit

Permalink
Add editor preview
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Dec 12, 2024
1 parent 0639a2c commit 10bdbe8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/collectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ And the default collectors:

To enable or disable any of the collectors, set the configuration to `true` or `false`. Some collector have additional options in the configuration:

<details><summary>debugbar.php</summary>
<details><summary>config/debugbar.php</summary>

```php

Expand Down
19 changes: 15 additions & 4 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Tip: you can disable he 'autoshow' toggle in the history tab to keep the current

![AJAX Request](img/ajax.gif)

Configuration:
<details><summary>config/debugbar.php</summary>

```php
/*
|--------------------------------------------------------------------------
Expand All @@ -41,6 +42,8 @@ Configuration:

```

</details>

## History browser

By default, Debugbar stores request history. This is useful for non-browser requests, redirects or external requests. You can open it with the 'folder' button (3rd from the right).
Expand All @@ -53,7 +56,8 @@ With the default settings, storage is only visible from your local IP. To enable

![History](img/history.gif)

Configuration:
<details><summary>config/debugbar.php</summary>

```php
/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -83,12 +87,17 @@ Configuration:
],
```

</details>

## Editor integration

Debugbar can open links to views, exception, routes etc in your Editor directly, if you set this up correctly. By default this should just work for PHPStorm on local development. You can change your editor by setting `DEBUGBAR_EDITOR` or the config.
If your working in a remote host or docker, you can change the mapping between remote and local paths.

Configuration:
![History](img/editor.gif)

<details><summary>config/debugbar.php</summary>

```php
/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -132,4 +141,6 @@ Configuration:
'remote_sites_path' => env('DEBUGBAR_REMOTE_SITES_PATH'),
'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', env('IGNITION_LOCAL_SITES_PATH')),

```
```

</details>
Binary file added docs/img/editor.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10bdbe8

Please sign in to comment.