Skip to content

Commit

Permalink
Include instructions for lldb-dap
Browse files Browse the repository at this point in the history
Add an example for how to use lldb-dap
  • Loading branch information
skittishdev authored and svaante committed Jul 4, 2024
1 parent 985ff97 commit 4f5a9c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ Download latesnd unpack =vsix= file with your favorite unzipper.

See [[https://code.visualstudio.com/docs/cpp/launch-json-reference][options]].

** C, C++ and Rust - lldb-dap
1. Install [[https://github.com/helix-editor/helix/wiki/Debugger-Configurations#install-debuggers][lldb-dap]] for your platform

*** Example for MacOS using homebrew

1. Install the =llvm= keg: =brew install llvm=
2. Prepend the =llvm= path to the =PATH= variable (=$(brew --prefix --installed llvm)/bin=)
3. =M-x dape= and pass in arguments of interest
- To pass arguments, use =:args ["arg1" "arg2" ..]=
- To use a different program instead of =a.out= (e.g., for Rust), use =:program "target/debug/<crate_name>"=

** Python - debugpy
Install debugpy with pip ~pip install debugpy~

Expand Down

0 comments on commit 4f5a9c0

Please sign in to comment.