Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

VSCode - Debug Project That Uses Meson & Ninja

$
0
0

I am using -

Linux Mint 19.3 Tricia.

VS Code Version: 1.41.1

C/C++ Extension Version: 0.26.3

I am working with Nemo. It is using Meson build system.

The way we are currently building the project using command line is -

git clone https://github.com/linuxmint/nemo
cd nemo
sudo apt-get build-dep nemo 
dpkg-buildpackage 

One thing we do to save time after the initial build and install using dpkg-buildpackage, is instead run: sudo ninja -C debian/build install.

Currently we are using gdb to debug (G_BREAKPOINT() to set breakpoints). However, it will be great to put breakpoints and press F5 to debug in VSCode.

I have checked makefile project build process just to have an understanding.

My understanding from my research is, we have to configure build.json, tasks.json& c_cpp_properties.json to achieve this.

What can be the solution here?


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>