Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

How to debug a Python script with arguments from an external file on Visual Studio Code

$
0
0

I'm new to VISUAL STUDIO CODE and python.I would like to debug a code that get arguments from a .conf file.How can I do this in VISUAL STUDIO? How can I pass this variable (address of the .conf file)

I think that the file is passed with the code:

inputfile = sys.argv[1]

When I call the python script with the following line in the windows shell:

python coreg_ifg_topsar.py project.conf

Please, how can I debug this code where an input file with the argument is needed?

Thank you very much in advance.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>