Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Write Better Python Buggy Logs PDB

Challenge Task 1 of 1 Import PDB and call set_trace() where it's needed.

why i can't pass this task

starter.py
import pdb

def something_silly(arg1, arg2):
    if len(arg1) > len(arg2):

      pdb.set_tracer()
      arg1[0] = arg2[0]
return arg1, arg2

1 Answer

Brandon Parker
Brandon Parker
13,242 Points

You have a typo in your function:

should be: pdb.set_trace()

( No 'r' in set_trace() )

instead of: pdb.set_tracer()