Oddbean new post about | logout
 Configuring NixOS for C Debugging in VSCode

Did you know that using NixOS with Visual Studio Code (VSCode) can be a seamless experience? In this article, the author shares their journey of setting up VSCode for debugging C programs on NixOS. Key takeaways include:

* Installing environment.systemPackages in /etc/nixos/configuration.nix
* Using vscode-fhs to simplify the process
* Creating a .vscode directory with launch.json and tasks.json files
* Utilizing the which command to get the path of gcc and gdb

This article provides a step-by-step guide for users looking to set up their NixOS environment for C debugging in VSCode. Whether you're new to NixOS or an experienced user, this tutorial is sure to help you get started.

Source: https://dev.to/matheusgb/dia-23-configurando-o-nixos-para-utilizar-o-debbuger-de-c-no-vscode-32fl