Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Ledger testing

Nejc Zdovc edited this page Apr 5, 2018 · 5 revisions

Performing QA and/or debugging the ledger (Brave Payments) is easy from the command line.

Available options

You can find available options in Command line flags

Running from source

If you're on Windows, you should use Git Bash or set the environment variables (see instructions in packaged build section). Providing the options should be as easy as:

LEDGER_VERBOSE npm run start

Packaged builds

If you're using a packaged build on Windows, you'll want to use mingw (ex: from Git Bash) OR set the options manually as environment variables. Linux and macOS, you can pass them when invoking Brave

Windows using mingw (from Git Bash)

cd ~/AppData/Local/Brave/app-0.19.110/
LEDGER_VERBOSE=true ./Brave

Windows using cmd.exe

Set the environment variables

  • Windows key > type environment variables > pick Edit the system environment variables
  • Click Environment Variables...
  • Under System variables, add new environment variables for the options above
  • Open cmd.exe and type the following (change version as needed)
cd %USER_PROFILE%\AppData\Local\Brave\app-0.19.110
Brave.exe

Linux

LEDGER_VERBOSE=true Brave

macOS

LEDGER_VERBOSE=true /Applications/Brave.app/Contents/MacOS/Brave

Vertical Side Tabs Tab Suspender

Clone this wiki locally