Skip to content

Commit fa9e793

Browse files
author
ABaldwinHunter
committed
Include debug information in Readme
1 parent f014f6a commit fa9e793

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,33 @@ The following is a brief explanation of each available command.
102102
* `validate-config`: Validates the `.codeclimate.yml` file in the current working directory.
103103
* `version`: Displays the current version of the Code Climate CLI.
104104

105+
## Debugging
106+
107+
Occasionally light may be shed on issues encountered during analysis by turning
108+
on debug mode and tweaking some additional settings that may be configured via
109+
environment variables.
110+
111+
- To run `codeclimate` in debug mode:
112+
113+
```
114+
CODECLIMATE_DEBUG=1 codeclimate analyze
115+
```
116+
117+
Prints additional information about the analysis steps, including any stderr
118+
produced by engines.
119+
120+
- To increase the amount of time each engine container may run (default 15 min):
121+
122+
```
123+
CONTAINER_TIMEOUT_SECONDS=1800 codeclimate analyze // 30 minutes
124+
```
125+
- You can also configure the default alotted memory with which each engine runs
126+
(default is 512_000_000 bytes):
127+
128+
```
129+
ENGINE_MEMORY_LIMIT_BYTES=1_000_000_000 codeclimate analyze // 30 minutes
130+
```
131+
105132
## Copyright
106133

107134
See [LICENSE](LICENSE)

0 commit comments

Comments
 (0)