This lesson is locked. Login or Subscribe for more access!

Using the Debugger in Goland

Duration: 2 mins

Learn how to use the debugging in GoLand to step through code.

Instructor

Matt Boyle

Share with a friend!

Transcript

Hey folks, this is a really quick video just to show you how to get the debugger set up in Goland. Effectively you should have to do no real setup here but I just want to make sure that it does work on your machine before we proceed any further in the course.

So the first thing I want you to do is just click in the gutter on this program. I still got the logging module code set up and you can use that too. But effectively if you click in the gutter here you should see a red dot appear. This is called a breakpoint and we'll go through this a bit more in the modules that follow.

But for now just make sure that shows up and then go and click this bug in the top right corner if all goes well you should see the code run and you should see pause and highlight this line this is perfect this means that the debugger works on your machine and you're ready to go there isn't any setup you should need to do to make this happen in Golan it should just work out the box.

I can't find any evidence that this is not the case for people typically but if you do have any issues and this doesn't happen for you please leave a comment below or drop me a message on Twitter and I'll add further videos here explaining how to fix your specific issue. I'll see you in the next one.