Plato can be used to launch the Win32 debugger called SDBG. In order to debug code for .NET you must use Visual Studio.
If your application uses command line arguments and you need to pass them to SDBG then it is simpler if you create a project (even when there is only one file).
If you are working with a project, first select either CHECKMATE or DEBUG mode and build the project. Then there are two basic ways to launch SDBG:
a) In the Explorer Window, right click on the name of the project and select Step Into. This starts up SDBG and sets a break point at the first executable statement,
b) In the code window, right click on a line and select Run to Cursor. This starts up SDBG and sets a break point on the given line.
To pass command line arguments to SDBG, select Properties from the Project menu and under the Miscellaneous section of Compiler Options, set the Launch arguments.
If you are working with a single file (with no project open) first build the file using compiler options (such as /CHECKMATE) that plant debugging code. The build command can be found on the main Build menu. The compiler options (for use when there is no project open) are set in the Options dialog under Environment, and General.
Then, in the code window, right click on a line and select Run to Cursor. This starts up SDBG and sets a break point on the given line.
The process of stepping through the code in the debugger can be controlled from Plato by using the Build toolbar...
If you cannot see this toolbar, use the View menu to make it visible.
You can also set breakpoints from Plato by pressing Ctrl+Shift and clicking in the margin of the appropriate line. If the debugger is not running, invalid breakpoints are cancelled when the debugger is started.
Additional integration with the debugger can be switched on from the Options dialog (select Tools, Options and then General). This causes the file viewing in SDBG to be reflected back to Plato. This means that you can view the code with its syntax colouring. Files that are automatically opened for viewing are also closed when debugging ends. Changes to the code cannot be made whilst debugging. When hovering over a variable in the source code, a tooltip shows its value. Double clicking on a variable displays its value in a new window whilst doing this with the control key down will add the variable to the Watch window.