comp.lang.ada
 help / color / mirror / Atom feed
From: DrPi <314@drpi.fr>
Subject: Re: Alternative for Gnat Studio
Date: Fri, 5 Mar 2021 14:37:49 +0100	[thread overview]
Message-ID: <6042342e$0$12681$426a74cc@news.free.fr> (raw)
In-Reply-To: <1b1fb97b-9ead-42f3-ac57-96b8d14eb195n@googlegroups.com>


I also made some tests with VSC on Windows10 recently.
In VSC, I installed :
- Adacore "Language Support for Ada" 22.0.4
- Entomy "Ada-snippets" 0.3.0
- Brandon Fowler "exe Runner" 0.1.0
- WebFreak "Native Debug" 0.25.0

For my test, I used sdv2ada project.
In the project folder, I created a .vscode folder.
In this folder, I added 1 file named tasks.json :
{
     "version": "2.0.0",
     "tasks": [
       {
         "label": "Build ",
         "command": "gprbuild",
         "args": ["*.gpr", "-p"],
         "group": {
           "kind": "build",
           "isDefault": true
         }
       }
     ]
}


Hiting CTRL+SHIFT+B triggers a build.
The "TERMINAL" tab shows the compiler output.
Problem : I can't click on an error.


In "Explorer" view, right click svd2ada.exe and click on "Run 
Executable" to... run the executable. The output can be viewed in the 
"TERMINAL" tab.


In the "Run" view, click on "Launch Program" then click on "Add 
Configuration...".
Select "{} GDB: Launch Program". A file named launch.json is created.
Modify the "target" to be "./svd2ada.exe".
The file should look like this :
{
     "version": "0.2.0",
     "configurations": [
         {
             "type": "gdb",
             "request": "launch",
             "name": "Launch Program",
             "target": "./svd2ada.exe",
             "cwd": "${workspaceRoot}",
             "valuesFormatting": "parseText"
         },
     ]
}

In the "Run" view, clicking on "Launch Program" icon (green triangle) 
triggers a debug session of svd2ada.exe
Hiting F5 also triggers a debug session.
The "DEBUG CONSOLE" tab shows the output.
When the program is built in release mode, it is simply run.
When the program is built in debug mode, you can use breakpoints and 
other debug functionalities.
Not all debug commands work. GDB Step actions do not always work 
correctly. The debug session often hangs. You then have to kill it and 
restart, when it doesn't kill itself.


Next step : Try with an embedded target (ARM platform).

  reply	other threads:[~2021-03-05 13:37 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <602e608e$0$27680$e4fe514c@news.kpn.nl>
2021-02-19  3:17 ` Alternative for Gnat Studio Matt Borchers
2021-02-19  8:16   ` Luke A. Guest
2021-02-20 15:48   ` ldries46
2021-02-20 16:12     ` Chris Townley
2021-02-21 12:06       ` ldries46
2021-02-22  7:00         ` Roger Mc
2021-02-22 11:20           ` Simon Wright
2021-02-23  7:52             ` ldries46
2021-02-24  8:11           ` Vadim Godunko
2021-02-24 10:06             ` Roger Mc
2021-02-24 11:42               ` Vadim Godunko
2021-03-05  9:36         ` Jerry
2021-03-05 13:37           ` DrPi [this message]
2021-03-06 12:14             ` Jérôme Haguet
2021-03-06 15:22               ` DrPi
2021-02-25 12:43 ` ldries46
2021-02-25 14:48   ` Dennis Lee Bieber
2021-02-25 18:10   ` Simon Wright
2021-02-25 23:51   ` Stephen Leake
2021-02-26  7:56   ` Dmitry A. Kazakov
2021-02-28 22:54     ` Stephen Leake
2021-03-01 18:04       ` Ludovic Brenta
2021-03-02  5:11       ` John Perry
2021-03-02  8:04         ` Simon Wright
2021-03-02  8:08         ` Emmanuel Briot
2021-03-02  9:13           ` rr (was: Re: Alternative for Gnat Studio) Simon Wright
2021-03-02  9:23             ` Emmanuel Briot
2021-03-04 22:48               ` rr Simon Wright
2021-03-04 22:53             ` rr Simon Wright
2021-03-05  6:53               ` rr Emmanuel Briot
2021-03-03  3:31           ` Alternative for Gnat Studio John Perry
2021-03-05 12:58         ` ldries46
2021-03-05 13:24           ` J-P. Rosen
2021-03-06 19:21 ` Daniel Norte Moraes
2021-03-13 16:17 ` Jaime Tarrasa
2021-03-13 16:26   ` Egil H H
2021-03-13 17:40   ` Stephen Leake
2021-03-13 22:07   ` Simon Wright
2021-03-13 23:35     ` Roger Mc
2021-03-14  6:34       ` Jeffrey R. Carter
2021-03-14  8:47       ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox