![Lead Image © Andre Zhak, 123RF.com Lead Image © Andre Zhak, 123RF.com](/var/ezflow_site/storage/images/archive/2018/48/debugging-bash-scripts-automatically/andre_zhak_123rf-lizard-bug.png/158179-1-eng-US/Andre_Zhak_123RF-Lizard-bug.png_medium.png)
Lead Image © Andre Zhak, 123RF.com
Debugging Bash scripts automatically
Bug Hunting
In times of almost infinite computing power, it makes no sense to rely on hard copy and a magnifying glass when you're debugging a script. I'll look at the extensive Eclipse integrated development environment (IDE) that offers a number of very convenient debugging functions. To begin, you should download the Eclipse IDE for Java Developers [1] with the Eclipse installer – the steps that follow are based on the Oxygen 2 version from December 2017.
Next, get the shell extension from the Eclipse Marketplace [2] and drag and drop the Install button to start the shell extension installation. Make sure you do not place the button on the Welcome screen; use an empty editor page instead (Figure 1). The Marketplace client integrated into new versions of Eclipse then automatically starts installing the plugin.
![](/var/ezflow_site/storage/images/archive/2018/48/debugging-bash-scripts-automatically/figure-1/158183-1-eng-US/Figure-1_large.png)
Setting Up Eclipse
Annoyingly, the Eclipse plugin uses the Dash shell by default, which cannot compare with Bash in terms of ease of use. To change this, click Window | Preferences |
...Buy this article as PDF
(incl. VAT)