IntelliJ IDEA: Running a shell script as a Run/Deb

2019-01-13 01:51发布

问题:

Is there a way by which a shell script can be invoked from IntelliJ Run/Debug configurations?

回答1:

I just found out that we can invoke a shell script with the help of BashSupport plugin.



回答2:

'Add External tool' in the 'Before Launch' does the trick.

Screenshot



回答3:

Not sure about 11, but in 12 there's a part of Run/Debug Configuration that is called "Before Launch" and you can select your shell script in "Add External tool" option.