rlx-debug(3) -- debug commands
==============================

## SYNOPSIS

Commands for debugging the environment, response documents and network connections.

## NETWORK COMMANDS

* `net [section]`:

Print information about the last network request. If *section* is not specified then all network related information is printed. The *section* option may be one of the following identifiers:

* misc - Miscellaneous properties
* network - Local and remote port and ip information
* request - Request information, URL, method, date, timestamp etc
* response - Response information, status code, content type etc
* speed - Information about upload and download speeds
* time - Time information for the network request

For more information see the manual page for curl(1).

## MISCELLANEOUS COMMANDS

* `env`:

Print all rlx(1) environment variables.

* `cookie`:

Print the contents of the cookie file, if the cookie file does not exist nothing is printed.

* `print`:

Print the last server response as JSON. If the last server response is not a JSON document a JSON parse error is printed.

* `grep [pattern] [command]`:

Executes a grep search on the response document resulting from executing *command*. If the executed command does not perform a network request nothing is done.

* `lint [file]`:

Performs a syntax check on a JSON document, the file must exist and have a json file extension.

## BUGS

**rlx** is written in bash and depends upon `bash >= 4.2`.

## COPYRIGHT

**rlx** is copyright (c) 2013 muji <http://xpm.io>

## SEE ALSO

rlx(1), couchdb(3)
