From the course: Debugging in Go
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Controlling program execution - Go Tutorial
From the course: Debugging in Go
Controlling program execution
- [Instructor] Now that we've seen a few different ways of starting a debugging session, let's take a look at the commands that are available to us. So again, to start a session, we're going to go with the easiest route. We'll go ahead and type dlv debug at the command line, and then we're actually going to follow the advice of the helpful prompt and type help to see the list of commands. Each of the various subheadings are broken apart by command functionality. This means that if we look at the different subheadings, you can see we have commands for viewing the call stack, selecting frames, listing and switching between threads and go routines, viewing the program's variables and memory, manipulating break points, and finally, running the program. The subheading we're going to focus on in this video is running the program. All of these different commands allow you to manipulate the execution of the process that you are debugging. The first command that we're going to explore is…