I'm trying to debug a python script in which passing arguments is required. Since I want to debug, using
-b flag is not an option (otherwise there is no problem when running the code in a background mode).
I tried the following thing
filename = "/full/path/to/script.py --Arg1 arg1 ...." exec(compile(open(filename).read(), filename, 'exec'))
Obviously that didn't work since
exec tries to execute a file without additional arguments.
1) If I try to debug w/o passing arguments everything works fine I can debug and do what I want.
2) Some system pros: running docker container with 4 NVIDIA 1080-Ti cards on ubuntu os.
How can this be done?