I also solved this by clearing the cache. Clearing the Python Debbuger cache helped me. Python Debugger: Clear Cache and Reload Window
Python Debugger: Clear Cache and Reload Window