![]() ![]() I also had to change the parameters for generating debug info to support GDB. removing overrides to various global settings, and getting rid of the Jedi Code Formatter stuff). ![]() I used the tasks from Mr Bee on GitHub but trimmed them down extensively (e.g. Writing these tasks requires an understanding of how to use the Free Pascal compiler. Get the full task config by following the link I used the Manual Installation Steps because I didn’t want to join the Windows Insiders Program. This is a bit of an aside, but if you want to run Ubuntu the way I did, this Microsoft article does a pretty good job of explaining the steps for activating the WSL. deb files made available by Lazarus (these I installed directly using apt install). To install a newer version of Free Pascal, I later followed the steps on the wiki and downloaded the laz and src. This put the source code under /usr/share/fpcsrc/3.0.4 and my lazbuild file under /usr/bin. In my case, I installed Free Pascal with Lazarus by running apt-get install lazarus on my Ubuntu WSL. The source can be downloaded from a separate link. Note that there is no native Windows 64-bit compiler for the latest version- you’ll need the native 32-bit compiler as well as the 64-bit cross-compiler. On Windows, you can download and install Free Pascal directly from the website. Special credit goes to Mr Bee from the Pascal Indonesia group, whose article was the basis for mine. ![]() At the very least, this is one more tool at your disposal when working with a legacy codebase. ![]() Note that similar steps can be used to configure VS Code for Pascal on a Mac if that’s your poison. It also allows Windows users to write and test Linux programs using the WSL, which is what I did to test this setup. This can be useful if you’re doing non-GUI work and you don’t want to rely on the full-blown Lazarus IDE. This article is about setting up things so that you can code, compile and debug Free Pascal from Visual Studio Code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |