File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -217,10 +217,19 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
217
217
--api-definitions-path=/workspace/apis
218
218
```
219
219
220
- # Debug the library generation container
220
+ # Debugging tips
221
+ ## Debug the scripts
222
+ Especially on local setups, consider adding the ` xtrace ` (` set -x ` ) flag to
223
+ - ` hermetic_build/library_generation/generate_library.sh `
224
+ - ` hermetic_build/library_generation/utils/utilities.sh `
225
+
226
+ This will allow you to observe how the tools you prepared in ` ~/.library_generation ` are being used.
227
+
228
+
229
+ ## Debug the library generation container
221
230
If you are working on changing the way the containers are created, you may want
222
231
to inspect the containers to check the setup.
223
- It would be convenient in such case to have a text editor/viewer available.
232
+ It would be convenient in such case to have a text editor/viewer available.
224
233
You can achieve this by modifying the Dockerfile as follows:
225
234
226
235
``` dockerfile
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -exo pipefail
3
+ set -eo pipefail
4
4
5
5
# parse input parameters
6
6
while [[ $# -gt 0 ]]; do
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -exo pipefail
3
+ set -eo pipefail
4
4
utilities_script_dir=$( dirname " $( realpath " ${BASH_SOURCE[0]} " ) " )
5
5
6
6
# Utility functions used in `generate_library.sh` and showcase generation.
You can’t perform that action at this time.
0 commit comments