在Visual Studio 2022中调试Fortran的问题

发布于 2025-02-12 12:55:28 字数 114 浏览 0 评论 0原文

我最近下载了Intel Oneapi HPC工具包,以尝试在Visual Studio中进行一些福特开发。该安装工作起作用,我可以制作Fortran项目和文件。但是我不能调试或运行它们。有什么方法可以解决此问题吗?

I recently downloaded the Intel oneAPI HPC Toolkit to try some Fortran development in Visual Studio. The installation worked, and I can make Fortran projects and files. However I can't debug or run them. Is there any way to fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狼性发作 2025-02-19 12:55:29

您确定无法运行它们,还是它们运行得如此之快,以至于程序启动和结束时会眨眼。

  1. 弹出源
  2. 将光标移至第一个可执行语句。然后按F9。红点将出现在代码的左侧。这表示断点。如果您得到一个红色圆圈,则意味着无法设置断点,并且您可能正在运行代码的旧版本,
  3. 将光标移至最后一个可执行的语句。按F9。同样,将出现另一个红点。
  4. 通过按F5运行
  5. 代码应停止 - 现在将有一个黄色箭头=>在红点上。
  6. 按F5恢复代码。它将停止在最后一个声明中。

Are you sure you can't run them or are they running so fast that the program starts and finishes in a blink of an eye.

  1. Pop up the source
  2. Move the cursor to the first executable statement. Then press F9. A red dot will appear on the left of the code. This indicates a breakpoint. If you get a red circle, it means that the breakpoint cannot be set and you are possibly running an old version of the code
  3. Move the cursor to the last executable statement. Press F9. Again, another red dot will appear.
  4. Run by pressing F5
  5. The code should stop - there will now be a yellow arrow => on top of the red dot.
  6. Press F5 to resume the code. It will stop at the last statement.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文