随笔分类 - Visual Studio
摘要:g++源码位置: C:\Users\Matthew Crawley\AppData\Local\Microsoft\Linux\HeaderCache\1.0\Ubuntu\usr\include\c++ g++源码位置: \\wsl.localhost\Ubuntu\usr\include\c++
阅读全文
摘要:VS Linux C++ Additional Debugger Commands Visual Studio 2022 Linux C++ 应用程序,当我们借助 GDB 调试时,如果需要设置其他的 GDB 调试命令,那么应在: 配置属性 => 调试 => 其他调试程序命令 一栏中填写需要的 GDB
阅读全文
摘要:Visual Studio 2022 使用监视窗口查看变量的地址 通过在“监视”窗口中,填写变量的取地址表达式 &var ,然后按 Enter 键以确认,从而在调试时来查看变量的地址。 References: 对变量设置监视 - Visual Studio (Windows) | Microsoft
阅读全文
摘要:Visual Studio 2022 额外指定编译命令 在 命令行 >> 其他选项 栏中填写额外指定的编译命令。 举例:Visual Studio 2022 Linux C++ 应用程序,强制指定 g++ 编译器暂时还未完全支持的最新的 C++20 标准,以覆盖默认支持的最高的 C++17 标准:
阅读全文
摘要:Visual Studio 2022 配置CMake Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C++ Team Blog (microsoft.com)
阅读全文
摘要:使用 Visual Studio 2022 开发 Linux C++ 应用程序 前置条件: Windows上需要先安装 WSL2,方法见: Install WSL | Microsoft Docs 在 WSL2 中依次执行如下命令,进行安装如下必需软件: sudo apt update && sud
阅读全文
摘要:VS Code Just My Code Debugging 😭 VS Code for C++ doesn't support Just My Code Refer here: Add support for "Just My Code" debugging · Issue #5763 · mi
阅读全文
摘要:Just My Code debugging During a debugging session, the Modules window shows which code modules the debugger is treating as My Code (user code), along
阅读全文
摘要:Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 References Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C
阅读全文
摘要:Debug only user code with Just My Code By default, the debugger skips over non-user code (if you want more details, see Just My Code). Just My Code is
阅读全文
摘要:Visual Studio 重置窗口布局
阅读全文
摘要:Using C++ in VS Code 👩🚀 Get Started with C++ and Windows Subsystem for Linux in Visual Studio Code 👨🚀 Configure VS Code for Clang/LLVM on macOS
阅读全文
摘要:Boost 官网指南 Boost C++ Libraries Boost Getting Started on Windows - 1.77.0 ① 下载 Boost.7z包 下载 .7z包 boost_1_77_0.7z ,解压至目录: C:\Program Files\boost\boost_1
阅读全文
摘要:C++ 与 Visual Studio 2019 和 WSL (库组件) Reference 在 C++ 项目中使用库和组件 | Microsoft Docs 演练:创建和使用自己的动态链接库 (C++) | Microsoft Docs 演练:创建并使用静态库 (C++) | Microsoft
阅读全文
摘要:预处理器定义 预定义宏 | Microsoft Docs /D(预处理器定义) | Microsoft Docs 🤦♀️ Microsoft 专用预定义宏 MSVC 支持以下预定义宏: _WIN32:当编译目标为 32 位 ARM、64 位 ARM、x86 或 x64 时,定义为 1。 其他情况
阅读全文
摘要:头文件 如果不小心修改了 Linux C/C++ 标准库头文件,可以下面这样操作进行恢复: 项目 → 重新扫描解决方案
阅读全文
摘要:终端 A more integrated terminal experience | Visual Studio Blog (microsoft.com) Say hello to the new Visual Studio terminal! | Visual Studio Blog (micro
阅读全文
摘要:Visual Studio CMake 项目和 WSL https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/ https://docs.microso
阅读全文
摘要:Visual Studio 使用 C++ 的 Linux 开发(WSL) https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/ 其大致原理是:“ Vi
阅读全文
摘要:VS2019中安装2017,2015
阅读全文