How to debug in VSC?

I am learning golang using VSC.

I am trying to debug go code. So I put a break point, and it does hit it.

But when I try to step over to next line, debugger instead opens up a file proc.go and displays a message:

I simply want to go to next line of code when I press ‘Step Over’.

So what am I doing wrong here?

Place breakpoints in your code by clicking on the line number in the editor where you want the execution to pause. Breakpoints help you examine the program’s state at a specific point during execution.

Great way

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.