> cat /wizhelp/wizcoding6

========================================================================
           Wizard Coding 6: Testing & Debug
========================================================================

Debug and perfect your creations.

CHECK DEBUG LOG:
  cat debug.log     # In your directory
  tail debug.log 20 # Last 20 lines

COMMON ERRORS:

NameError: Missing import
  Fix: Add proper import statement

IndentationError: Wrong spacing
  Fix: Use exactly 4 spaces per level

Room not found: Name mismatch
  Fix: Ensure unique room names

AttributeError: Wrong property
  Fix: Check spelling/object type

DEBUG TECHNIQUES:

Add print statements:
```python
def load():
    print(f"Loading room...")  # Shows in log
    room = Room(...)
    print(f"Room created: {room.name}")
    return room
```

Test incrementally:
```python
# Start simple
room = Room(name="test", description="Test")

# Add features one by one
room.exits.append(Exit("north", "other"))

# Test each addition with goto
```

VALIDATION CHECKLIST:
  ✓ All exits lead somewhere valid
  ✓ Return paths exist
  ✓ Items clone properly
  ✓ NPCs spawn and fight
  ✓ Custom commands work
  ✓ No Python errors
  ✓ Descriptions make sense

GETTING HELP:
  - Check working examples in /lib
  - Ask other wizards
  - Review debug.log carefully
  - Test in small pieces

========================================================================    

> _