1
1
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:
Mattias Wadman 2021-08-27 09:47:43 +02:00
parent 2874bc7995
commit a926c8f109

View File

@ -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 ...
```