Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Run Ada Code in GPS

Tags:

ide

ada

gnat

In GNAT Programming Studio, how do you run the program? I see it compiled successfully, but I do not see where my program has started running. I would like to test it.

like image 448
Misty Avatar asked Dec 16 '22 09:12

Misty


1 Answers

First, you have to select your Main procedure in the project properties (see the "main files" tab). You can actually choose multiple files for multiple executables.

Next, you have to build it - either by pressing F4 for the first Main File in the list, or by choosing it in the Build->Project submenu, or by choosing "build all" in the Build->Project submenu (or use the toolbar for the menu entries).

Last, you can choose, which of your Main Files to run by choosing it in the Build->Run menu, or by pressing shift+F2 for the first file in the list. Enter the parameters in the dialog and press OK.

There should be a new Tab next to the Messages panel, where all output is placed, and you can use it for input, too. You could choose to use an external terminal in the run dialog.

If you want to debug it, have a look at the Debug menu. Read the documentation for more information.

like image 177
Rommudoh Avatar answered Dec 28 '22 08:12

Rommudoh