1.2 KiB
1.2 KiB
Debug Code Issues
Debug the following code issues: $ARGUMENTS
Debugging Protocol:
- Issue Understanding: Analyze the problem description and expected vs actual behavior
- Log Analysis: Examine relevant log files and error messages
- Code Investigation: Review related source code and recent changes
- Reproduction: Attempt to reproduce the issue in a controlled environment
- Root Cause: Identify the underlying cause and contributing factors
Debugging Commands:
# For Go backend
go run -race ./cmd/mev-bot
LOG_LEVEL=debug ./mev-bot start
# For Solidity contracts
npx hardhat test
forge test -vvv
# For Frontend
npm run dev
npm run test:unit
Investigation Areas:
- Go Backend: Concurrency issues, memory leaks, parsing errors
- Solidity Contracts: Gas issues, reentrancy, overflow/underflow
- Frontend: Vue component issues, state management, web3 integration
- Integration: API communication, contract interactions, data flow
Output Requirements:
- Clear problem identification with code references
- Step-by-step reproduction instructions
- Root cause analysis with technical details
- Proposed solution with implementation steps
- Test plan to verify the fix