NBCpp (NoBrainerCpp)简体中文 · User guide · Developer notes Compile and debug the active C or C++ source file in VS Code. On Windows x64, NBCpp can use a system compiler or its bundled Clang and LLDB. You can set breakpoints and type input into the integrated terminal, even on a machine without MinGW, Visual Studio or the Microsoft C/C++ extension installed separately. Clang, LLD and LLDB in 48.82 MiB of compressed toolchain data. The bundle includes the Windows x64 tools, runtime libraries and headers used by the examples below. Try it with a C program
Launch and control a session
What you can build
For a C++ exercise, save this as
The automatic build compiles one source file with debug information, writes the executable next to the source and runs it with the source directory as its working directory. Local headers can be included as usual. The bundled compilers have been tested with C17 and C++17 examples. Generated GNU and Clang tasks use the compiler's default language standard. A project that needs an explicit standard can set it in its own build task. Projects with multiple separately compiled source files, CMake targets, custom linker flags or external SDKs need their own build tasks. The bundled toolchain targets Windows x64 console programs. Its Windows libraries and headers are a selected subset. How NBCpp chooses a toolchainNBCpp checks the directories on PATH for GNU, Clang and MSVC concurrently. The first usable set for the active file can start the initial build while discovery continues. Later runs can use a preferred complete toolchain. MSVC requires a developer environment with its include and library paths configured. If the system has a C compiler only, the bundled Clang++ can still build a C++ exercise. With the Microsoft C/C++ extension, NBCpp can use its GDB integration or Visual Studio debugger with a matching system toolchain. The bundled LLDB path uses a small Windows launcher to start your program in a VS Code terminal and attach before it runs past the first breakpoint. The status bar briefly shows the compiler and debugger for each run. NBCpp can generate Bundled toolchain sizeThe bundled Clang, LLD and LLDB tools report version 21.1.8. Inside the VSIX, the bundled Windows x64 toolchain occupies 2,697 files under Source and supportThe extension and native launcher are available under the repository's MIT license. The bundled LLVM and MinGW-w64 components retain their upstream licenses. For a problem report, include your Windows, VS Code and NBCpp versions, the compiler shown in the status bar and a small program that reproduces the issue.
中文快速入门在 Windows x64 的桌面版 VS Code 中安装 NBCpp,用「打开文件夹」打开练习目录,保存一个带 |
