LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Tutorial
    • Avonni Components App
      • Accessing the App
      • Folders
      • Templates
      • Version management
    • Understanding The Essentials
      • Component Builder
      • Component Visibility
      • Target Page Object
      • Using Variables and Component Data
      • Publishing your Dynamic Components
      • Dynamic vs. Flow Components
    • AppExchange Listing Page
    • Installation & Licenses Management
  • Tutorials
    • Projects
    • Components
      • Calendar
        • How to Create Events Quickly by Dragging
        • How to Add an Edit Action to Calendar Events
        • How to Add a New Event Button to the Calendar Header
        • How to Customize the Right-Click Menu
        • How to Reschedule Events with Drag and Drop
      • Columns
        • Creating a Responsive 3-Column Layout
      • Data Table
        • How to customize Data Table style
        • How to make a field editable
        • How to add clickable buttons
        • How to color-code badges
        • How to export data
        • How to configure search
        • How to set columns visibility
        • How to Conditionally Color Data Table Cells
      • Kanban
        • Saving Changes on Drag-and-Drop
      • List
      • Metric
      • Record Detail
        • Saving Changes
    • Interactions
      • How to create an interaction to navigate to an object page
      • How to create an interaction to navigate to a record page
      • How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow
    • Reactive Components
      • Reactive Map and Data Table
      • Master-Detail Relationship with Data Tables
      • Vertical Tabs with Reactive Data Table
    • Style
      • How do you add space or a break between sections or fields?
    • Tips and Tricks
      • Using the Dynamic Component component
  • Component Builder
    • Overview
    • Configuring Components
      • Properties
      • Fields
      • Style
    • Data & Interactions
      • Data Sources
        • Manual
        • Picklist
      • Resources
        • Constant
        • Formula
        • Nested Queries
        • Query
        • Variable
      • Interactions
        • CRUD from Record Variable
        • Download
        • Execute Flow
        • Navigate
        • On Load
        • Open Alert Modal
        • Open Confirm
        • Open Dynamic Component Dialog
        • Open Dynamic Component Panel
        • Open Flow Panel
        • Open Flow Dialog
        • Show Toast
    • Advanced Features
      • Copy and Paste
      • Debug Panel
      • Keyboard Shortcut
      • Undo / Redo
  • Components
    • Explore All Components
    • Accordion
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Badge
    • Barcode
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Button Stateful
    • Calendar
    • Camera 🆕
    • Card
    • Carousel
    • Chart
    • Checkbox
    • Checkbox Button
    • Chip Container
    • Color Picker
    • Columns
    • Combobox
    • Container
    • Counter
    • Data LWC Container
    • Data Table
    • Date Picker
    • Date
    • Date Range
    • Dual Listbox
    • Dynamic Component
    • File Upload
    • Flow
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Icon
    • Icon Picker
    • Illustration
    • Image
    • Input Color
    • Input Date
    • Input Pen (Signature)
    • Input Text
    • Kanban
    • List
    • LWC Container
    • Map
    • Media Object
    • Metric
    • PDF Viewer
    • Pivot Table
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Rating
    • Record Detail
    • Relationship Graph
    • Scope Notification
    • Section
    • Separator
    • Slider
    • Status
    • Tabbed Container
    • Tabs
    • Text
    • Text Area
    • Timeline
    • Toggle
    • Tree
    • Vertical Visual Picker
    • Video Player
    • Visual Picker
    • Visual Picker Link
  • Help
    • Contact Support
    • Security
    • Performance Guide
    • Deployment Process
    • Release Notes
    • Report Bugs
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Overview
  • Key Benefits
  • Accessing the Debug Details Panel
  • Using the Debug Details Panel
  • Input Variables Tab
  • Output Variables Tab
  • Practical Example: Testing a Record-Specific Component
  • In Summary

Was this helpful?

  1. Component Builder
  2. Advanced Features

Debug Panel

Last updated 2 days ago

Was this helpful?

Overview

The Debug Details Panel is a powerful feature available within the Avonni Component Builder's Preview Mode. It provides an interactive way to test your Dynamic Component's behavior by allowing you to simulate input values and inspect output values in real-time, all without needing to activate and deploy your component to a Salesforce page.

Key Benefits

  • Rapid Testing & Iteration: Test how your component responds to various inputs instantly.

  • Interactive Debugging: See your component re-render in real-time as you change variable values.

  • No Deployment Needed: Fully test your component's variable logic without leaving the Component Builder.

  • Validate Component Logic: Ensure that your formulas, conditional visibility, and reactivity function as expected across various data scenarios.

Accessing the Debug Details Panel

  1. Enter Preview Mode: While in the Avonni Component Builder, click the "Preview" button.

  2. Open the Panel: The Debug Details Panel will appear on the right side of the screen.

Using the Debug Details Panel

The panel contains two primary tabs: Input Variables and Output Variables.

Input Variables Tab

This tab allows you to simulate data being passed into your Dynamic Component.

  • What it Displays: This tab lists all the Variable resources that you have marked as "Available for Input" in your component's configuration.

  • How it Works:

    1. Find the input variable you want to test in the list.

    2. Enter or select a value for it directly in the panel's input field.

    3. As you type or change the value, the component on the preview canvas will instantly react and re-render based on the simulated input.

Output Variables Tab

This tab allows you to inspect the current value of data being passed out of your Dynamic Component.

  • What it Displays: This tab lists all the Variable resources that you have marked as "Available for Output" in your component's configuration.

  • How it Works:

    • It provides a read-only view of the current value of each output variable.

    • As you interact with your component in the preview canvas (e.g., select an item, fill out a form), you will see the values in this tab update in real-time, confirming that your component's internal logic is correctly setting its output variables.

Practical Example: Testing a Record-Specific Component

Scenario: You've built a component that should be placed on a record page. It has an input variable inputRecordId and uses an "On Load" > "Get Records" action to fetch and display data for that specific record.

Old Way (without Debug Panel): You would have to save, activate, go to the Lightning App Builder, place the component on a record page, save the page, and then navigate to different records to test it.

New Way (with Debug Panel):

  1. Setup: In your Dynamic Component, ensure you have a Text Variable named inputRecordId and that it is marked as "Available for Input". Your component's logic should use this variable (e.g., as the Record ID in your "On Load" > "Get Records" action).

  2. Enter Preview Mode: Click the "Preview" button in the Component Builder.

  3. Use the Debug Panel:

    • Click on the Input Variables tab in the Debug Details Panel.

    • Find inputRecordId in the list.

    • Paste a valid 18-character Salesforce Record ID into its value field.

  4. Observe: The component on the preview canvas will immediately re-render, showing the data for the record ID you just pasted, as if you were on that actual record page.

  5. Iterate: Paste a different Record ID to instantly test the component's behavior with another record's data.

Key Considerations

  • Preview Mode Only: This panel is a testing tool available exclusively in Preview Mode. It does not appear on live Salesforce pages.

  • Variable Availability: A variable will only appear in the "Input Variables" or "Output Variables" tab if its "Available for Input" or "Available for Output" checkbox is checked in its configuration within the Resources panel.

In Summary

The Debug Details Panel is an essential tool for accelerating development with Avonni Dynamic Components. By allowing you to interactively test your component's input and output variables directly within the builder, it streamlines the debugging process and helps you build more reliable components faster.