### Install Redshift CLI Source: https://github.com/shobrook/redshift/blob/master/README.md Installs the Redshift command-line interface using pip. This is the first step to using Redshift for debugging. ```bash > pip install redshift-cli ``` -------------------------------- ### Set Breakpoint with Redshift Import Source: https://github.com/shobrook/redshift/blob/master/README.md Demonstrates how to set a breakpoint within a Python script by importing the `redshift` library and calling `redshift.set_trace()`. ```python import redshift def foo(): # ... redshift.set_trace() # ... ``` -------------------------------- ### Configure API Key Source: https://github.com/shobrook/redshift/blob/master/README.md Sets the ANTHROPIC_API_KEY environment variable, which Redshift uses to connect to Anthropic's services. Other providers like OpenAI or local models are also supported via LiteLLM. ```bash > export ANTHROPIC_API_KEY="..." ``` -------------------------------- ### Set Breakpoint using built-in breakpoint() Source: https://github.com/shobrook/redshift/blob/master/README.md Shows how to trigger Redshift debugging by calling the built-in `breakpoint()` function after configuring `PYTHONBREAKPOINT`. ```python def foo(): # ... breakpoint() # ... ``` -------------------------------- ### Set Breakpoint via PYTHONBREAKPOINT Source: https://github.com/shobrook/redshift/blob/master/README.md Configures Python to use Redshift's `set_trace` function as the default breakpoint handler by setting the PYTHONBREAKPOINT environment variable. This allows using the built-in `breakpoint()` function. ```bash export PYTHONBREAKPOINT=redshift.set_trace ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.