From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-2.free.fr!not-for-mail Subject: Re: Alternative for Gnat Studio Newsgroups: comp.lang.ada References: <602e608e$0$27680$e4fe514c@news.kpn.nl> <8cc91fa5-cf6c-4a32-8344-60aebcd4ef9en@googlegroups.com> <60312f42$0$21346$e4fe514c@news.kpn.nl> <60324cdd$0$31320$e4fe514c@news.kpn.nl> <1b1fb97b-9ead-42f3-ac57-96b8d14eb195n@googlegroups.com> From: DrPi <314@drpi.fr> Date: Fri, 5 Mar 2021 14:37:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <1b1fb97b-9ead-42f3-ac57-96b8d14eb195n@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 7bit Message-ID: <6042342e$0$12681$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 05 Mar 2021 14:37:50 CET NNTP-Posting-Host: 82.65.30.55 X-Trace: 1614951470 news-2.free.fr 12681 82.65.30.55:52099 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:61487 List-Id: 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).