Can parameters be passed to a module for debugging? Follow
It seems debug parameters are passed to modules as if the module is a script.
Currently I'm pasting function calls at the end of modules to get the debugger to work on modules. Is there a better approach?
Please sign in to leave a comment.
I'm trying to debug functions in a module. I can do this if I past the function call with parameters at the end of the module and choose PyCharm>Run>Debug while the module is active in the editor. I tried Edit Configurations > Default > Python but it is asking for script info. I filled in the module name and parameters but the parameters seemed to be passed to the module as if the module is called at the linux prompt.