Debugging in Spyder

Few things to note:

  • n : next line
  • s : step into function
  • c : continue to next breakpoint.
  • r : run through to the return statement of the function at once

With any of the 3 above,  pressing <enter> just repeats the last command given.  So lets say we have stepped into a function using ‘s’,  and we don’t want to step into other functions inside that function then remember to toggle to ‘n’ at point.  

Familiar Shortcuts in Spyder:

  • F5, F9  for debugging.
  • Control + D

References:

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s