Search code examples
pythonanacondaspyder

How to debug in spyder line by line without enterting external libraries


When i try to debug in spyder line by line, it keeps entering external libraries like "iostream" for example or whatever libraries the code need it. However, when I tried visual studio code, it worked correctly and only went through my source code lines. Is it possible to make spyder works in the same way?


Solution

  • (Spyder maintainer here) To avoid entering in external Python libraries while debugging, you need to go the menu

    Tools > Preferences > IPython console > Debugger
    

    and enable the option called Ignore Python libraries while debugging.