Fortran Coder

查看: 2222|回复: 0
打印 上一主题 下一主题

[IDE] VS code 为什么不显示程序框

[复制链接]

47

帖子

15

主题

0

精华

专家

F 币
311 元
贡献
158 点
跳转到指定楼层
楼主
发表于 2022-3-31 14:03:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在VScode当中调试或者以非调试模式运行的时候,为什么先弹出了一个程序框又退回了呢,而没有一直显示在屏幕上,请问应该如何设置呢。
launch.json的配置如下:
[Fortran] 纯文本查看 复制代码
{
    "version": "0.0.1",
    "configurations": [
        {
            "name": "Fortran Launch (GDB)",
            "type": "cppdbg",
            "request": "launch",
            "targetArchitecture": "x86",
            "program": "${workspaceRoot}\\${fileBasenameNoExtension}.exe",
            "miDebuggerPath": "gdb.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceRoot}",
            "externalConsole": true,
            "preLaunchTask": "gfortran"
        },
        {
            "name": "Intel Debug Attach",
            "type": "cppvsdbg",
            "request": "attach",
            "processId": "${command:pickProcess}"
        }
    ] }

task.json的配置如下:
[Fortran] 纯文本查看 复制代码
{
    "version": "2.0.0",
    "command": "gfortran",
    "args": [
        "-g",
        "${file}",
        "-o",
        "${workspaceRoot}\\${fileBasenameNoExtension}.exe"
    ]
}

分享到:  微信微信
收藏收藏 点赞点赞 点踩点踩
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-4-29 19:14

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表