You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,21 @@ Add `live_debugger` to your list of dependencies in `mix.exs`:
17
17
```elixir
18
18
defpdepsdo
19
19
[
20
-
{:live_debugger, "~> 0.1.4", only::dev}
20
+
{:live_debugger, "~> 0.1.5", only::dev}
21
21
]
22
22
end
23
23
```
24
24
25
+
For full experience we recommend adding below line to your application root layout. It attaches `meta` tag and LiveDebugger scripts in dev environment enabling browser features.
After you start your application LiveDebugger will be running at a default port `http://localhost:4007`.
26
36
27
37
> [!WARNING]
@@ -34,23 +44,16 @@ List of browser features:
34
44
- Debug button
35
45
- Components highlighting (coming soon!)
36
46
37
-
Some features require injecting JS into the debugged application. To achieve that you need to turn them on in the config and add LiveDebugger scripts to your application root layout.
47
+
Some features require injecting JS into the debugged application. You can disable them in your config.
38
48
39
49
```elixir
40
50
# config/dev.exs
41
51
42
-
config :live_debugger, browser_features?:true
43
-
```
52
+
# Disables all browser features and does not inject LiveDebugger JS
@@ -67,14 +70,14 @@ In `router.ex` of your Phoenix app, make sure your locally running Phoenix app c
67
70
68
71
## Igniter
69
72
70
-
LiveDebugger has [Igniter](https://github.com/ash-project/igniter) support - an alternative for standard mix installation. It'll automatically add LiveDebugger scripts to `root.html.heex` and enable browser features in your `config/dev.exs` after you use the below command.
71
-
72
-
Make sure that added dependency is `:dev` only.
73
+
LiveDebugger has [Igniter](https://github.com/ash-project/igniter) support - an alternative for standard mix installation. It'll automatically add LiveDebugger dependency and modify your `root.html.heex` after you use the below command.
0 commit comments