contributions are positively welcome and encouraged!
- download/fork the repository and
cd
into it - install the prerequisites
- follow the related build instructions
to build/debug the avian project, you can use the convient avian-cli
tool:
cargo avian --help
there are mulitple commands available, but the most important ones are:
cargo avian build
- builds the projectcargo avian run
- builds and runs the projectcargo avian test
- builds and runs the testscargo avian debug
- builds and runs the project in debug modecargo avian config
- configures the build system (see configuring)
to use lldb, you need to install it first (see prerequisites).
then, use cargo avian config
to set the gdb
option to true
: cargo avian config --gdb true
then, you can use the cargo avian debug
command to build and run the project in debug mode.
finally you can use lldb to debug the project: lldb
and (lldb) gdb-remote localhost:1234
.
to use gdb, you need to install it first (see prerequisites)
then, use cargo avian config
to set the gdb
option to true
: cargo avian config --gdb true
then, you can use the cargo avian debug
command to build and run the project in debug mode.
finally you can use gdb to debug the project: gdb
and (gdb) target remote localhost:1234
.
the avian-cli
tool allows you to configure the build system to your liking.
you can configure the following options:
cargo avian config --arch <x86_64/aarch64>
- sets the target architecturecargo avian config --mode <debug/release>
- sets the build modecargo avian config --gdb <true/false>
- sets whether to open a gdb port or not