'What is the difference between Run and Debug modes in Pycharm and why is the run mode sometimes incomplete?
I'm using pycharm and have a weird problem. I do not know why when pressing the enter key does not confirm the input and does not continue the code in run mode, while debug mod does well. However, it works when the bottom of the code prints the input, but not the other remaining code. This is my code that tries to get the user name and the same password through the instaloader:
import instaloader
from getpass import getpass
L = instaloader.Instaloader()
USER = input('Enter Instagram User: ')
print(USER)
while True:
try:
PASSWORD = getpass('Enter Password: ')
L.login(USER, PASSWORD)
break
except:
print("Wrong Password")
profile = instaloader.Profile.from_username(L.context, USER)
print(profile.get_followers().count)
for f in profile.get_followers():
print(f.username)
Now see the difference between run and debug modes, In debug mode, the code is executed well and after pressing the enter key, it enters the next phase.
The continuation of the code suddenly stops in run mode.
Please tell me what is the difference between this two modes and why has run mode such a problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


