mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
* Migrating Core Salesforce Skills * Updating pr comments * updat reference * Updating a skill * Migrating Datacloud skills * Migrating Industries cloud skills * Validating - skills fixing --------- Co-authored-by: Sandip Kumar Yadav <sandipkumar.yadav+sfemu@salesforce.com>
1.3 KiB
1.3 KiB
Debug Analysis Playbook
Use this playbook when debugging-apex-logs is active and you need the expanded workflow.
1. Gather context
Collect:
- org alias
- failing transaction or test context
- approximate time window
- relevant user / record / request identifiers
2. Retrieve logs
Preferred commands:
sf apex list log --target-org <alias> --json
sf apex get log --log-id <id> --target-org <alias>
sf apex tail log --target-org <alias> --color
See cli-commands.md for more options.
3. Analyze in this order
- transaction entry point
- exceptions and fatal errors
- governor limits
- SOQL / DML repetition patterns
- CPU / heap hotspots
- callout timing and external failures
4. Classify severity
- Critical — runtime failure, hard limit, data corruption risk
- Warning — near-limit, non-selective query, slow path
- Info — optimization opportunity, cleanup item, observability gap
5. Propose fixes
Prefer fixes that are:
- root-cause oriented
- bulk-safe
- testable
- deployable in one clean change set
6. Loop with adjacent skills
- use
sf-apexfor code fixes - use
running-apex-teststo reproduce and verify - use
deploying-metadatato deploy fixes - use
handling-sf-datawhen the issue depends on missing or malformed test data