Elapsed | Time | Activity |
---|---|---|
0:00 | 0:05 | Objectives |
0:05 | 0:15 | Initial Exercise |
0:20 | 0:20 | Overview |
0:40 | 0:60 | In Class Activity I |
1:05 | 0:10 | BREAK |
1:15 | 0:45 | In Class Activity II |
TOTAL | 2:00 |
Debugging tools and techniques are language-agnostic skills that last a lifetime!
- Define what a debugger is, and why developers would use one.
- Identify and describe the processes Delve uses to debug Golang programs.
- Implement a integration with Delve into your editor of choice.
- CLI Demo - Vincenzo
Debugger (noun):
Even the most experienced software programmers usually don't get it right on their first try. Certain errors, often called bugs, can occur in programs, causing them to not function as the programmer expected. Sometimes these errors are easy to fix, while some bugs are very difficult to trace. This is especially true for large programs that consist of several thousand lines of code.
Fortunately, there are programs called debuggers that help software developers find and eliminate bugs while they are writing programs. A debugger tells the programmer what types of errors it finds and often marks the exact lines of code where the bugs are found. Debuggers also allow programmers to run a program step by step so that they can determine exactly when and why a program crashes. Advanced debuggers provide detailed information about threads and memory being used by the program during each step of execution. You could say a powerful debugger program is like OFF! with 100% DEET.
Source: link
- Go over the Delve Getting Started Guide.
- Make sure
$GOPATH
is set in yourbash
orzsh
configuration: follow these instructions - Add
export PATH="$GOPATH/bin:$PATH"
to your~/.zshrc
or~/.bashrc
- Run
source ~/.zshrc
orsource ~/.bashrc
to reload your current shell instance and load the newPATH
setting. - Install Delve
cd ~/go
go get -u github.com/go-delve/delve/cmd/dlv
- Follow this Delve tutorial to learn how to debug on the command line.
- Use this Editor Integration Guide to integrate Delve debugging into your editor of choice.
Continue to work on your MakeUtility project. It's due next week, and is a big part of your final grade!