Skip to content
Clientell AI

Fetch Debug Logs

Use Cases:

    Troubleshoot

    Prompt

    Set a trace flag for a specific user and fetch the latest debug log showing any errors or limit warnings.

    Try it yourself

    Related use cases

    Paste an error. Get the root cause in seconds.

    Try this prompt

    “Apex error ‘FIELD_CUSTOM_VALIDATION_EXCEPTION’ on saving Opportunity — identify which validation rule fired and why.”

    FIELD_CUSTOM_VALIDATION_EXCEPTION
    Object: Opportunity
    Action: Save record
    Root Cause
    Rule: Require_Amount
    Amount must be > 0 when Stage ≠ Prospecting
    Set Amount > 0 or change Stage to Prospecting
    1 validation rule identified

    Surface queries over 5s and their caller in one prompt.

    Try this prompt

    “Identify queries in the last 24 h whose execution time > 5 s and list caller (flow, apex).”

    Slow QueriesLast 24h
    QueryTimeCaller
    SELECT * FROM Lead...8.2sFlow
    SELECT Account...6.5sApex
    SELECT Opp WHERE...5.1sFlow
    3 queries > 5sThreshold: 5s

    Auto-generate test coverage for any Apex class.

    Multi-stepTry this prompt

    “Generate a test class for the AccountService Apex class with positive, negative, and bulk test methods targeting 85%+ coverage.”

    AccountServiceTest.cls
    1
    @isTest
    2
    class AccountServiceTest {
    3
      testPositive()
    4
      testNegative()
    5
      testBulk()
    6}
    3 methods · auto-generatedTarget: 85%+