-
Notifications
You must be signed in to change notification settings - Fork 1
Home
BismuthBloom edited this page Feb 2, 2023
·
3 revisions
- Download Docker if you haven’t already.
- Download the latest release of CBUG. Unless you’re very familiar with building from source, we recommend downloading the zip file. Remember to unzip it.
- Open the Terminal app. To use it, type the path to CBUG before all of your commands. If CBUG was kept in the Downloads folder, you can invoke it with
~/Downloads/cbug/bin/cbug
. - Use
[cbug_path] sync
once in your desired directory to begin. - Compile your program with CBUG in front of it, and make sure to use CBUG before all subsequent commands. Currently, CBUG uses Valgrind so see documentation on that to debug your code.
- When done, use
clear
andremove
to clean up the docker.
Congratulations! You can use CBUG!
If you find any bugs, please contact us or submit an issue here.
Since cbug
is a terminal program, you can set up an alias to quickly call its path instead of typing the program path each time. This can be done with editing the .zshrc
file on your Mac. One quick command can create and/or open the file needed.
- Open the terminal and run
nano ~/.zshrc
.~/
specifically looks through the home directory to find/create it. It should look like this (but it might have other text depending on what you've done before): - In this editor,
#
followed by text is a comment. For actual alias, typealias cbug = "PATH"
, replacing PATH with whatever path you call forcbug
. If you use~/
when callingcbug
, replace it with$HOME/
. - Write the file by pressing
control + o
. - Exit with
control + x
. - Restart the terminal to use
cbug
by just typingcbug
in the terminal.