Reputation: 85
As you can see, my debugger on pycharm is connected, but the code still run without stop at the breakpoints. What could be the problem please ?
Here is a screenshot after when I play debug mode on the test.py file:
As you can see, it doesn't stop at the breakpoint. Can someone help me please ?
Upvotes: 3
Views: 4014
Reputation: 7579
Try to fix indent of comparison with __main__
:
def main():
...
if __name__ == "__main__":
main()
Upvotes: 7