1.1 KiB
1.1 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| debug | Systematic debugging workflow to find and fix issues | true |
Debug
Debug issue: $ARGUMENTS
Process
-
Understand the problem
- What is the expected behavior?
- What is the actual behavior?
- When did it start happening?
- Is it reproducible?
-
Gather information
- Check browser console for errors
- Check terminal for server errors
- Look at network requests
- Check component props/state
-
Isolate the cause
- Find the smallest reproduction
- Identify which component/function is involved
- Check recent changes to that area
- Add console.logs or debugger statements
-
Form hypothesis
- Based on evidence, what could cause this?
- List possible causes in order of likelihood
-
Test and fix
- Test most likely cause first
- Make minimal change to fix
- Verify fix doesn't break other things
-
Verify
- Confirm original issue is resolved
- Test related functionality
- Remove debug statements
Output
Report findings, root cause, and the fix applied.