Hi Team,
how to debug in pycharm ?
in a situation where I am accepting input value via command line argument.
But when I run python script via command line, I am not unable to debug.
how to debug in pycharm ?
in a situation where I am accepting input value via command line argument.
But when I run python script via command line, I am not unable to debug.
1 2 3 4 5 6 7 8 9 10 11 |
import sys def main(iCnt): for i in range (iCnt): # I have put break point print (i) if __name__ = = "__main__" : iCnt = int (sys.argv[ 1 ]) # iCnt = 10 main(iCnt) |