-
-
mr88cet
(Apologize in advance if I just missed it, but I can't seem to find this either in the docs or this forum.)
Is there a way to invoke our scripts such that Pythonista prompts for would-be-command-line parameters, to appear to my script as sys.argv[]?
Conceptually/ideally, it would seem like any query in your code of sys.argv[] should trigger it to prompt for command-line parameters.
-
-
mr88cet
@eric said:
nice, I wasn't aware of the pdb module!
I suspect I'll be needing it. Never buy a pencil without an eraser!
-
mr88cet
Ah, OK, good deal, thanks!
Also, just for the record:
https://docs.python.org/2/library/pdb.html
-
mr88cet
Question: Does Pythonista include a debugger? If so, I haven't managed to locate it yet, but then again, I'm pretty new to Python in general, and to Pythonista in particular.
In particular, ways of setting breakpoints, seeing where in the code it's executing, single-stepping into vs. over method calls, viewing expressions, watchpoints on data change, and so forth?