visual-studio - 我们如何为 Visual Studio 指定调试目标

标签 visual-studio fortran visual-studio-2019

这是我的程序

program hello
    print *, "Hello World!"
end program hello

它对我说

visual studio cannot debug because a debug target has not been specified

最佳答案

通常发生这种情况的原因是您选择了错误的项目类型 - 例如,选择了库而不是可执行文件。如果您的项目正确构建了 EXE,但仍然收到此错误,请右键单击该项目,选择“属性”。然后在“调试”属性页上将 Command 属性设置为 $(TargetPath)。否则,创建一个正确类型的新项目(例如,控制台应用程序

关于visual-studio - 我们如何为 Visual Studio 指定调试目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57292668/

相关文章:

c# - 远程部署/调试 Visual Studio 2017 .NET Core

c++ - 从 VS2003 到 VS2005 的转换问题?

fortran - 编译 FORTRAN IV 还是转换为 FORTRAN 77?

winforms - 我无法让报告查看器在 VS 2019 上工作

c# - 延迟加载导航属性返回 'System.InvalidOperationException'

asp.net-core - 缺少配置和管理 IIS Express 的组件

visual-studio - 错误 NU1107 检测到 Microsoft.EntityFrameworkCore 的版本冲突。在安装 EF 核心时安装/引用

c++ - 如何在 VBA 中声明接受 XlfOper (LPXLOPER) 类型参数的函数?

linux - 使用 shell 脚本读取矩阵的所有条目

c++ - Fortran 和 C++ : Linking error in Visual Studio