Debugging Strategy
This skill provides a structured approach to problem-solving.
Process
- •Isolate: Reproduce the issue with minimal code.
- •Observe: Add logs or use debugger to check state.
- •Hypothesize: What is causing the state mismatch?
- •Experiment: Test the hypothesis.
- •Fix & Verify: Apply fix and run regression tests.
Tools
- •Logging:
logger.debug()is your friend. - •Node Inspector:
node --inspect.
Instructions
When analyzing a stack trace, look for the first line within our codebase. Suggest adding detailed logging around the failure point before making code changes if the cause is unclear.