sqs 发表于 2022-3-31 14:03:11

VS code 为什么不显示程序框

在VScode当中调试或者以非调试模式运行的时候,为什么先弹出了一个程序框又退回了呢,而没有一直显示在屏幕上,请问应该如何设置呢。
launch.json的配置如下:
{
    "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的配置如下:
{
    "version": "2.0.0",
    "command": "gfortran",
    "args": [
      "-g",
      "${file}",
      "-o",
      "${workspaceRoot}\\${fileBasenameNoExtension}.exe"
    ]
}
页: [1]
查看完整版本: VS code 为什么不显示程序框