【问题标题】:Is is possible to build codes using Bazel in Visual Studio?是否可以在 Visual Studio 中使用 Bazel 构建代码?
【发布时间】:2018-01-05 02:55:11
【问题描述】:

我目前正在关注 this instruction 以使用 tensorflow 构建 C++ 代码。

我要做的是使用 Visual Studio 的debug 模式运行执行(二进制)文件。

为此,我想我必须先通过Visual Studio构建一个二进制文件,以便我可以设置断点并逐行执行代码。

但问题是在VS 中构建代码并不是那么简单,因为它使用bazel 命令而不是g++

是否可以在 Visual Studio 中使用 Bazel 构建代码?

【问题讨论】:

    标签: c++ visual-studio tensorflow bazel


    【解决方案1】:

    从 0.22.0 版开始,没有对 Visual Studio 的插件支持:请参阅 list of supported IDEs and editors

    不过,an API to build IDE plugins

    【讨论】:

      【解决方案2】:

      与此同时,https://github.com/tmandry/lavender 已发布。这是一个项目生成器,可生成 Visual Studio 解决方案文件和给定 Bazel 构建文件(WORKSPACE、BUILD 等)的项目文件。调试的效果也出奇的好。

      【讨论】:

        猜你喜欢
        • 2017-05-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-06-04
        • 1970-01-01
        • 1970-01-01
        • 2023-03-04
        • 1970-01-01
        相关资源
        最近更新 更多