Visual Studio Code 和 Bash on Ubuntu on Windows (WSL) GCC/GDB 集成 [英] Visual Studio Code and Bash on Ubuntu on Windows (WSL) GCC/GDB integration

查看:31
本文介绍了Visual Studio Code 和 Bash on Ubuntu on Windows (WSL) GCC/GDB 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前 Visual Studio Code 不支持在 Windows 内调试.如何设置 vscode 以在 Windows 上使用 bash 中的 gcc/gdb?

Currently Visual Studio Code does not support debugging inside windows. How to setup vscode to use gcc/gdb from bash on windows?

推荐答案

解决方案如下:

随着 Windows 10 创意者更新的发布,您现在可以使用 Visual Studio Code 和 Microsoft C/C++ 扩展进行调试Ubuntu 项目上的适用于 Linux 的 Windows 子系统 (WSL) Bash.

With the release of Windows 10 Creators Update, you will now be able to use Visual Studio Code and the Microsoft C/C++ extension to debug your Windows Subsystem for Linux (WSL) Bash on Ubuntu projects.

https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/Debugger/gdb/Windows%20Subsystem%20for%20Linux.md

这篇关于Visual Studio Code 和 Bash on Ubuntu on Windows (WSL) GCC/GDB 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆