2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: debug
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-02-29 16:09:28 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Debug print the value(s) piped in.
|
2020-02-29 16:09:28 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-02-29 16:09:28 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> debug --raw```
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `--raw`: Prints the raw value representation
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Examples
|
2020-02-29 16:09:28 +01:00
|
|
|
|
2022-03-01 14:05:29 +01:00
|
|
|
Print the value of a string
|
2022-02-14 03:22:51 +01:00
|
|
|
```shell
|
|
|
|
> 'hello' | debug
|
2020-02-29 16:09:28 +01:00
|
|
|
```
|
2022-03-01 14:05:29 +01:00
|
|
|
|
|
|
|
Print the value of a table
|
|
|
|
```shell
|
|
|
|
> echo [[version patch]; [0.1.0 $false] [0.1.1 $true] [0.2.0 $false]] | debug
|
|
|
|
```
|