mirror of
https://github.com/wader/fq.git
synced 2024-11-23 00:57:15 +03:00
dev: Some debug notes
This commit is contained in:
parent
2874bc7995
commit
a926c8f109
11
doc/dev.md
11
doc/dev.md
@ -22,3 +22,14 @@ decoder code be a bit ugly over producing a tree that is hard to understand.
|
||||
|
||||
- Try to have add symbols for all named constants.
|
||||
|
||||
## Debug
|
||||
|
||||
Send `log` package output and stderr to a file that can be `tail -f`:ed:
|
||||
```sh
|
||||
LOGFILE=/tmp/log go run main.go ... 2>/tmp/log
|
||||
```
|
||||
|
||||
gojq execution debug:
|
||||
```sh
|
||||
GOJQ_DEBUG=1 go run -tags debug main.go ...
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user