-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for running GDB and LLDB (#4710)
After lots of fidgeting, LLDB seems to work. Not sure how reliable this will be though -- fission seems a little hit and miss.
- Loading branch information
Showing
4 changed files
with
103 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "by-gdb", | ||
"request": "launch", | ||
"name": "file_test (gdb)", | ||
"program": "bazel-bin/toolchain/testing/file_test", | ||
"programArgs": "--file_tests=${relativeFile}", | ||
"cwd": "${workspaceFolder}", | ||
"env": { "TEST_TMPDIR": "/tmp" } | ||
}, | ||
{ | ||
"type": "by-gdb", | ||
"request": "launch", | ||
"name": "carbon compile (gdb)", | ||
"program": "bazel-bin/toolchain/install/prefix_root/lib/carbon/carbon-busybox", | ||
"programArgs": "compile --phase=lower --dump-sem-ir --stream-errors ${relativeFile}", | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"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/_main~llvm_project~llvm-project/llvm/utils/lldbDataFormatters.py", | ||
"settings set target.source-map \".\" \"${workspaceFolder}\"" | ||
], | ||
"env": { "TEST_TMPDIR": "/tmp" } | ||
}, | ||
{ | ||
"type": "lldb-dap", | ||
"request": "launch", | ||
"name": "carbon compile (lldb)", | ||
"program": "bazel-bin/toolchain/install/prefix_root/lib/carbon/carbon-busybox", | ||
"args": [ | ||
"compile", | ||
"--phase=lower", | ||
"--dump-sem-ir", | ||
"--stream-errors", | ||
"${relativeFile}" | ||
], | ||
"debuggerRoot": "${workspaceFolder}", | ||
"initCommands": [ | ||
"command script import external/_main~llvm_project~llvm-project/llvm/utils/lldbDataFormatters.py", | ||
"settings set target.source-map \".\" \"${workspaceFolder}\"" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters