Fortran Coder

标题: VS code 为什么不显示程序框 [打印本页]

作者: sqs    时间: 2022-3-31 14:03
标题: VS code 为什么不显示程序框
在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"
    ]
}






欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2