We can also see the the call stack, and at the moment the running function is the main function, and Line 40. We can see the state or value of the variables, at that particular time in the Variables section. The Debug Section on the left will give us the state of the current breakpoint position. The debugger will eventually move to Line 40. Next, either press F5 or click on the Launch button with a green play button on the Debug Section on the top left to open the Debug View.Ĭlick multiple times on the Step Over button on the Debug Toolbar. Let’s add a breakpoint on Line 21 ( func main()) by clicking to the left of the line number. Next we need to add a breakpoint, because that’s what debugging is all about. Here’s the source code for the first example.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |