|
| 1 | + |
| 2 | + |
| 3 | +LiveDebugger is a browser-based tool for debugging applications written in [Phoenix LiveView](https://github.com/phoenixframework/phoenix_live_view) - an Elixir library designed for building rich, interactive online experiences with server-rendered HTML. |
| 4 | + |
| 5 | +Designed to enhance your development experience LiveDebugger gives you: |
| 6 | + |
| 7 | +- A detailed view of your LiveComponents tree |
| 8 | +- The ability to inspect assigns for LiveViews and LiveComponents |
| 9 | +- Tracing of their callback executions |
| 10 | + |
| 11 | +## Installation |
| 12 | + |
| 13 | +> #### Important {: .info} |
| 14 | +> |
| 15 | +> LiveDebugger should not be used on production - make sure that the dependency you've added is `:dev` only |
| 16 | +
|
| 17 | +<!-- tabs-open --> |
| 18 | + |
| 19 | +### Mix installation |
| 20 | + |
| 21 | +Add `live_debugger` to your list of dependencies in `mix.exs`: |
| 22 | + |
| 23 | +```elixir |
| 24 | + defp deps do |
| 25 | + [ |
| 26 | + {:live_debugger, "~> 0.1.6", only: :dev} |
| 27 | + ] |
| 28 | + end |
| 29 | +``` |
| 30 | + |
| 31 | +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. |
| 32 | + |
| 33 | +```elixir |
| 34 | + # lib/my_app_web/components/layouts/root.html.heex |
| 35 | + |
| 36 | + <head> |
| 37 | + <%= Application.get_env(:live_debugger, :live_debugger_tags) %> |
| 38 | + </head> |
| 39 | +``` |
| 40 | + |
| 41 | +After you start your application, LiveDebugger will be running at a default port `http://localhost:4007`. |
| 42 | + |
| 43 | +### Igniter installation |
| 44 | + |
| 45 | +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. |
| 46 | + |
| 47 | +```bash |
| 48 | +mix igniter.install live_debugger |
| 49 | +``` |
| 50 | + |
| 51 | +<!-- tabs-close --> |
| 52 | + |
| 53 | +## Authors |
| 54 | + |
| 55 | +LiveDebugger is created by Software Mansion. |
| 56 | + |
| 57 | +Since 2012 [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=livedebugger) is a software agency with experience in building web and mobile apps as well as complex multimedia solutions. We are Core React Native Contributors, Elixir ecosystem experts, and live streaming and broadcasting technologies specialists. We can help you build your next dream product – [Hire us](https://swmansion.com/contact/projects). |
| 58 | + |
| 59 | +Copyright 2025, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=livedebugger) |
| 60 | + |
| 61 | +[](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=livedebugger) |
| 62 | + |
| 63 | +Licensed under the [Apache License, Version 2.0](LICENSE) |
0 commit comments