page 4
Step 4. Debug
In main menu, select Debug > Step Into (or press F11, or click Step Into button on Debug toolbar)

Visual C# switches into Debugging mode, Program.cs is opened in the code editor and its first curly brace is highlighted, and a console is launched.

Hit F11 twice. The debugger stops at the constructor of Max Age Extension in PlugIn.cs, waiting for your directive. At the same time, the console indicates that Landis has successfully loaded the scenario file and is loading Max Age Extension

Use Step Into (F11), Step Over (F10) and Step Out (Shift+F11) buttons on Debug toolbar to go through the source code

Keep eye on Locals/Watch table, which contains the list of local variables and their values. If you are only intrested in tracking values of some particular variables, click on Watch tab and type in the names of desired variables

Another useful tool is a breakpoint. If you want to get directly to the particular part of code, for example to Run() method, right-click on that line and select Breakpoint > Insert Breakpoint in pop-up menu. Then use Start Debugging / Continue (F5) button on Debug toolbar to start debugging or to go to the next breakpoint.

< Page 3 | Page 4
In main menu, select Debug > Step Into (or press F11, or click Step Into button on Debug toolbar)

Visual C# switches into Debugging mode, Program.cs is opened in the code editor and its first curly brace is highlighted, and a console is launched.

Hit F11 twice. The debugger stops at the constructor of Max Age Extension in PlugIn.cs, waiting for your directive. At the same time, the console indicates that Landis has successfully loaded the scenario file and is loading Max Age Extension

Use Step Into (F11), Step Over (F10) and Step Out (Shift+F11) buttons on Debug toolbar to go through the source code

Keep eye on Locals/Watch table, which contains the list of local variables and their values. If you are only intrested in tracking values of some particular variables, click on Watch tab and type in the names of desired variables

Another useful tool is a breakpoint. If you want to get directly to the particular part of code, for example to Run() method, right-click on that line and select Breakpoint > Insert Breakpoint in pop-up menu. Then use Start Debugging / Continue (F5) button on Debug toolbar to start debugging or to go to the next breakpoint.

< Page 3 | Page 4

