examplein the above exceptionwe could set breakpoint right before calling the works_fine method and run the script until we reach the breakpoint by pressing (continue)ipdbb ipdbc /home/wesm/book_scripts/ch /ipython_bug py( )calling_things( def calling_things() -- works_fine( throws_an_exception(at this pointyou can step into works_fine(or execute works_fine(by pressing (nextto advance to the next lineipdbn /home/wesm/book_scripts/ch /ipython_bug py( )calling_things( works_fine(--- throws_an_exception( thenwe could step into throws_an_exception and advance to the line where the error occurs and look at the variables in the scope note that debugger commands take precedence over variable namesin such cases preface the variables with to examine their contents ipdbs --call-/home/wesm/book_scripts/ch /ipython_bug py( )throws_an_exception( ---- def throws_an_exception() ipdbn /home/wesm/book_scripts/ch /ipython_bug py( )throws_an_exception( def throws_an_exception()---- ipdbn /home/wesm/book_scripts/ch /ipython_bug py( )throws_an_exception( ---- assert( = ipdbn /home/wesm/book_scripts/ch /ipython_bug py( )throws_an_exception( ---- assert( = ipdb! ipdb! ipythonan interactive computing and development environment www it-ebooks info