5월, 2022의 게시물 표시

Remote C/C++ Debugging with VSCode #2 - VSCode Makefile Tools

이미지
This article is a continuation of the previous blog( https://tipspiggy.blogspot.com/2022/05/remote-cc-debugging-with-vscode-1.html ).  Traditionally, Makefile is mainly used for Linux C/C++ development.(In fact, Makefile and make can be used not only in C/C++ but also in various development language projects.)  The usual purpose for Makefile in C++ projects is to recompile and link necessary files based on the modifications done to dependencies.   Compared to development tools such as Visual Studio on Windows, the extension sln and vcxproj files are used. When developing C/C++ using Visual Studio on Windows, most of us do not look at the contents of sln (Visual Solution File) and vcxproj (Visual Studio Project File) files. The reason is that if you select the properties of a solution or project in Visual Studio IDE, you can easily see the contents of the file in the property window. However, although the Linux system uses a desktop mode that supports a GUI, there are also many cases wh

Remote C/C++ Debugging with VSCode #1 - Installation and simple debugging

이미지
 Previously, I wrote an article about C++ debugging of remote Linux systems in VSCode , but it seems that it is time to change the contents after about 3 years have passed. VSCode has been greatly improved over the past time and the remote debugging feature has also become much easier to use. There is little difference from debugging on the local system. This explanation assumes that VSCode is installed on your computer. For reference, I used CentOS 7 installed on VMWare Workstation as a remote Linux server. There is probably no difference in usage even if you use a different distribution such as Ubuntu. Install extension for remote development Remote Development Extension First, install the extension for remote development in your VSCode. Search for "Remote Development" in VSCode and install "Remote Development" made by Microsoft. This extension installs Remote - SSH, Remote - Containers, Remote - WSL. Among them, Remote-SSH will be mainly used. <Remote Developm