Eclipse: Debug script that expects command line options

I have a python script I'm trying to debug in eclipse. I can execute it, intercept all this jazz, but this particular script requires several command line parameters. Is it possible to configure the dev environment in eclipse to accommodate these parameters?

Now my program just creates a line to execute, for example:

script.py -aword -banother -cword -dmore -eparams -flast -gone

so that i can just copy and paste everything after script.py somewhere? or can i hardcode them in eclipse? or will I have to hard code the variables in my script?

+3
source share
2 answers

Use launch configuration

: - script, = > /Python Run   = > Run - , /Run Configurations   = > - "",

: - - "" ""

"" "".

, , " " "". , , , VM, ,...

+3

, , , . . : Python Script

+2

Source: https://habr.com/ru/post/1758280/


All Articles