{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "lldb-dap",
      "request": "launch",
      "name": "file_test (lldb)",
      "program": "bazel-bin/toolchain/testing/file_test",
      "args": ["--file_tests=${relativeFile}"],
      "debuggerRoot": "${workspaceFolder}",
      "initCommands": [
        "command script import external/+llvm_project+llvm-project/llvm/utils/lldbDataFormatters.py",
        "settings append target.source-map \".\" \"${workspaceFolder}\"",
        "settings append target.source-map \"/proc/self/cwd\" \"${workspaceFolder}\"",
        "settings set escape-non-printables false",
        "settings set target.max-string-summary-length 10000",
        "env TEST_TARGET=//toolchain/testing:file_test",
        "env TEST_TMPDIR=/tmp"
      ]
    },
    {
      "type": "lldb-dap",
      "request": "launch",
      "name": "carbon compile (lldb)",
      "program": "bazel-bin/toolchain/carbon",
      "args": [
        "compile",
        "--phase=lower",
        "--dump-sem-ir",
        "--stream-errors",
        "${relativeFile}"
      ],
      "debuggerRoot": "${workspaceFolder}",
      "initCommands": [
        "command script import external/+llvm_project+llvm-project/llvm/utils/lldbDataFormatters.py",
        "settings append target.source-map \".\" \"${workspaceFolder}\"",
        "settings append target.source-map \"/proc/self/cwd\" \"${workspaceFolder}\"",
        "settings set escape-non-printables false",
        "settings set target.max-string-summary-length 10000"
      ]
    }
  ]
}
