Skip to content

Commit 80a2f94

Browse files
committed
Maintenance: Enhances SFCC debugging workflows
Streamlines the debugging process for SFCC development by prioritizing essential log checks and refining the sequence of steps. This update removes redundant steps and incorporates checks for warnings and debug-level messages.
1 parent 612fae6 commit 80a2f94

File tree

3 files changed

+12
-30
lines changed

3 files changed

+12
-30
lines changed

ai-instructions/cursor/.cursor/rules/debugging-workflows.mdc

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ Use this rule when investigating errors, performance issues, or debugging SFCC a
2323

2424
### 🔍 For Transaction Tracing:
2525
1. `mcp_sfcc-dev_search_logs` with pattern: [transaction-id] - Find transaction entries
26-
2. `mcp_sfcc-dev_get_related_logs` with correlationId: [transaction-id] - Get complete flow
27-
3. `mcp_sfcc-dev_search_logs` with pattern: [customer-id] - Track customer journey
26+
2. `mcp_sfcc-dev_search_logs` with pattern: [customer-id] - Track customer journey
2827

2928
### 📊 For System Health Assessment:
3029
1. `mcp_sfcc-dev_summarize_logs` - Overall system status
@@ -76,19 +75,7 @@ Use: mcp_sfcc-dev_get_latest_error (limit: 5)
7675
Purpose: Identify most recent critical issues
7776
```
7877

79-
**Step 3: Pattern Analysis**
80-
```
81-
Use: mcp_sfcc-dev_analyze_error_patterns with errorMessage: [specific error]
82-
Purpose: Get intelligent diagnosis with SFCC-specific solutions
83-
```
84-
85-
**Step 4: Transaction Tracing**
86-
```
87-
Use: mcp_sfcc-dev_get_related_logs with correlationId: [id]
88-
Purpose: Follow complete request/transaction flow
89-
```
90-
91-
**Step 5: Best Practice Consultation**
78+
**Step 3: Best Practice Consultation**
9279
```
9380
Use: mcp_sfcc-dev_search_best_practices with query: [relevant topic]
9481
Purpose: Get SFCC-specific debugging and fix patterns

ai-instructions/cursor/.cursor/rules/sfcc-development.mdc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ You are a **Senior Salesforce B2C Commerce Cloud Developer** working with the SF
3535
### 🐛 Debugging and Troubleshooting Phase:
3636
1. `mcp_sfcc-dev_summarize_logs` - Get system health overview FIRST
3737
2. `mcp_sfcc-dev_get_latest_error` - Check recent critical errors
38-
3. `mcp_sfcc-dev_search_logs` - Search for specific error patterns
39-
4. `mcp_sfcc-dev_analyze_error_patterns` - Deep analysis of recurring issues
40-
5. `mcp_sfcc-dev_get_related_logs` - Trace specific transactions
38+
3. `mcp_sfcc-dev_get_latest_warn` - Check recent warnings
39+
4. `mcp_sfcc-dev_get_latest_info` - Check info-level messages
40+
5. `mcp_sfcc-dev_get_latest_debug` - Check debug-level messages
41+
6. `mcp_sfcc-dev_search_logs` - Search for specific error patterns
42+
7. `mcp_sfcc-dev_list_log_files` - List available log files
4143

4244
### 🎯 Configuration and Setup Phase:
4345
1. `mcp_sfcc-dev_search_system_object_attribute_groups` - Find preference groups

ai-instructions/github-copilot/copilot-instructions.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Use these for debugging and troubleshooting:
183183
→ summarize_logs
184184

185185
2. Check recent errors:
186-
get_latest_errors
186+
get_latest_error
187187

188188
3. Search for specific issues:
189189
→ search_logs with pattern: "your_error_pattern"
@@ -272,11 +272,9 @@ Problem/Error Scenario
272272
│ ├── → summarize_logs (get system health overview)
273273
│ ├── → get_latest_error (check recent errors)
274274
│ └── → search_logs (pattern: error keywords)
275-
├── "Performance issues"
276-
│ ├── → get_latest_warn (check warnings)
277-
│ └── → search_best_practices (query: "performance")
278-
└── "Need to understand error patterns"
279-
└── → analyze_error_patterns (errorMessage: specific error)
275+
└── "Performance issues"
276+
├── → get_latest_warn (check warnings)
277+
└── → search_best_practices (query: "performance")
280278
```
281279

282280
#### **When User Asks About Data Models/Objects**
@@ -368,11 +366,6 @@ searchRequest: {
368366
```markdown
369367
For Transaction Tracing:
370368
1. → search_logs (pattern: "transaction-id-123", logLevel: "info")
371-
2. → get_related_logs (correlationId: "transaction-id-123", timeWindow: "15min")
372-
373-
For Error Pattern Analysis:
374-
1. → search_logs (pattern: "NullPointerException", logLevel: "error")
375-
2. → analyze_error_patterns (errorMessage: "NullPointerException in CartModel", timeRange: "1day")
376369

377370
For Performance Investigation:
378371
1. → search_logs (pattern: "timeout", logLevel: "warn")
@@ -396,7 +389,7 @@ For Performance Investigation:
396389
3. **Deep Dive with Detail Tools**
397390
- get_sfcc_class_documentation
398391
- search_best_practices
399-
- get_related_logs
392+
- search_logs
400393
```
401394

402395
#### **Parallel vs Sequential Tool Usage**

0 commit comments

Comments
 (0)