How does one break the execution of a long-running process in the python console of ArcMap?
For example, how do you break a long iteration like the one below once it is started?
for i in range(1, 50):
# some long process which takes over a minute to complete
I want to stop the process at any time I want by pressing a keyboard combination, clicking a button or something similar while the code I have input in the console window is running.