Skip to content

NBCppVS Code extension

One extension. Zero configuration.
Press F5 to build and debug C/C++.

Install NBCpp on Windows x64, open a new folder in VS Code, then save and select a .c or .cpp file. NBCpp detects your system compiler and sets up the build and debugger automatically. If it can’t find a compiler for the current language, it uses the bundled compiler.

Windows x64 · 48.82 MiB compressed toolchain in 1.5.0

Integrated terminal debugging demo
main.cpp
1#include <iostream>
2 
3int main() {
4int n = 0;
5 std::cin >> n;
6 std::cout << n * 2 << '\n';
7}
Terminalmain.exe
Input21
Output
Paused on line 6

From source to breakpoint

Full user guide

Open a folder

Save a .c or .cpp file with a main function in your workspace. Press F5 or choose Smart Run to set up the build and start debugging.

Use a compact toolchain

NBCpp looks for GNU, Clang or MSVC on your system. On Windows x64, a compact LLVM toolchain is included for languages without a suitable system compiler.

Debug with terminal input

Read input with scanf or std::cin in the terminal. Set a breakpoint, then press F10 to step over a statement and inspect the variables.

48.82 MiBCompressed toolchain in NBCpp 1.5.0

What comes in the extension?

The Windows x64 bundle includes Clang, Clang++, LLD and the LLDB debug adapter, all at version 21.1.8. In the 1.5.0 VSIX, the toolchain files take up 48.82 MiB compressed and 169.06 MiB unpacked. The full extension package is 49.45 MiB. The bundled tools can compile, link and run C17 and C++17 examples on their own.

NBCpp 1.5.0

First-run F5 and terminal debugging

Version 1.5.0 added first-run F5 setup for new workspaces and shortened debugger startup with a native launcher. The changes for 1.5.1 cover documentation and toolchain build instructions. Debugging works as it did in 1.5.0.

Read development notes