// Troubleshoot common Wheels errors and provide debugging guidance. Use when encountering errors, exceptions, or unexpected behavior. Provides error analysis, common solutions, and debugging strategies for Wheels applications.
| name | Wheels Debugging |
| description | Troubleshoot common Wheels errors and provide debugging guidance. Use when encountering errors, exceptions, or unexpected behavior. Provides error analysis, common solutions, and debugging strategies for Wheels applications. |
Cause: Mixed positional and named arguments
Solution: Use consistent argument style
❌ hasMany("comments", dependent="delete")
✅ hasMany(name="comments", dependent="delete")
Cause: Using Array functions on queries
Solution: Use query methods
❌ ArrayLen(post.comments())
✅ post.comments().recordCount
Cause: Association not properly defined or typo
Solution:
Cause: Migration not run or table name mismatch
Solution:
wheels dbmigrate latest
Cause: Property doesn't exist in database
Solution:
// In config/settings.cfm
set(showDebugInformation=true);
set(showErrorInformation=true);
<cfdump var="#post#" label="Post Object">
<cfabort>
// Wheels logs all SQL to debugging output
// Look for red SQL queries (errors)
Generated by: Wheels Debugging Skill v1.0