|
| 1 | +# Features Overview |
| 2 | + |
| 3 | +LiveDebugger provides a comprehensive set of tools designed to improve Phoenix LiveView debugging and development. From real-time state inspection to performance profiling, these features give you deep visibility into your application's behavior. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +### [Assigns Inspection](assigns_inspection.md) |
| 8 | + |
| 9 | +Inspect the current state of assigns for any LiveView or LiveComponent in your application. Updated in real-time, this feature acts like a live `IO.inspect/1` with context, helping you track state changes, debug reactivity issues, and spot bugs faster. |
| 10 | + |
| 11 | +**Key capabilities:** |
| 12 | + |
| 13 | +- Real-time assign updates |
| 14 | +- Copy assigns for IEx processing |
| 15 | +- Expandable/collapsible complex data structures |
| 16 | +- Immediate feedback on user interactions |
| 17 | + |
| 18 | +### [Callback Tracing](callback_tracing.md) |
| 19 | + |
| 20 | +See how functions in your LiveView application are being called with comprehensive tracing capabilities. Monitor all LiveView and LiveComponent callbacks with detailed execution information including timing, arguments, and execution flow. |
| 21 | + |
| 22 | +**Key capabilities:** |
| 23 | + |
| 24 | +- Filter by callback type, execution time, or search terms |
| 25 | +- Detailed argument inspection with fullscreen view |
| 26 | +- Copy callback arguments for terminal processing |
| 27 | +- Support for all Phoenix.LiveView and Phoenix.LiveComponent callbacks |
| 28 | + |
| 29 | +### [Components Highlighting](components_highlighting.md) |
| 30 | + |
| 31 | +Visually identify and locate components rendered in your current debugged LiveView. Hover over component names in the tree to highlight their corresponding DOM elements in your application. |
| 32 | + |
| 33 | +**Key capabilities:** |
| 34 | + |
| 35 | +- Toggle highlighting mode on/off |
| 36 | +- Hover-to-highlight functionality |
| 37 | +- Non-intrusive visual feedback |
| 38 | + |
| 39 | +### [Components Tree](components_tree.md) |
| 40 | + |
| 41 | +Examine how LiveComponents are arranged in your debugged LiveView. The tree automatically updates when state changes, showing the complete hierarchy from LiveView root to all nested LiveComponents with their CIDs. |
| 42 | + |
| 43 | +**Key capabilities:** |
| 44 | + |
| 45 | +- Discover your application's structure |
| 46 | +- Real-time tree updates on state changes |
| 47 | +- View nested LiveView relationships |
| 48 | + |
| 49 | +### [DeadView Mode](dead_view_mode.md) |
| 50 | + |
| 51 | +Debug the state of your application after redirecting or encountering a crash. This feature preserves the last known state and callback history, allowing you to investigate what went wrong even after the process has terminated. |
| 52 | + |
| 53 | +**Key capabilities:** |
| 54 | + |
| 55 | +- Inspect last state of LiveView or LiveComponents |
| 56 | +- Review callback execution order |
| 57 | +- See which callback crashed the process |
| 58 | +- Continue to successor LiveView after debugging |
| 59 | +- Status indicator showing alive/dead state |
| 60 | + |
| 61 | +### [Elements Inspection](elements_inspection.md) |
| 62 | + |
| 63 | +Inspect LiveViews and LiveComponents directly from the rendered page by selecting elements with your mouse. |
| 64 | + |
| 65 | +**Key capabilities:** |
| 66 | + |
| 67 | +- Two activation methods: Debug Button or Inspect Element button |
| 68 | +- Hover preview with element information |
| 69 | +- Click to inspect node |
| 70 | +- Highlight elements during selection |
| 71 | +- Works in both standalone and DevTools extension modes |
| 72 | + |
| 73 | +## Browser Features |
| 74 | + |
| 75 | +Some features require JavaScript injection into your debugged application for enhanced functionality: |
| 76 | + |
| 77 | +- **Components Highlighting** - Visual DOM highlighting |
| 78 | +- **Elements Inspection** - Mouse-based element selection |
| 79 | + |
| 80 | +These features are enabled by default but can be configured. See the [Configuration](config.md) page for details. |
0 commit comments