"version": "0.0.1",
"configurations": [
{
"name": "Fortran Launch (GDB)",
"type": "cppdbg",
"request": "launch",
"targetArchitecture": "x86",
"program": "${workspaceRoot}\\${fileBasenameNoExtension}.exe",
"miDebuggerPath": "D:/Application_Softwares/MinGW-W64/mingw64/bin/gdb.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"externalConsole": true,
"preLaunchTask": "gfortran"
},
{
"name": "Intel Debug Attach",
"type": "cppvsdbg",
"request": "attach",
"processId": "${command:pickProcess}"
}
] }\
{
"version": "2.0.0",
"command": "gfortran",
"args": [
"-g",
"${file}",
"-o",
"${workspaceRoot}\\${fileBasenameNoExtension}.exe"
]
}
PROGRAM HELLO
IMPLICIT NONE
OPEN (UNIT=3, FILE='hello.dat', STATUS='UNKNOWN')
WRITE (UNIT=3, FMT=*) 'Hello World!'
CLOSE (UNIT=3)
STOP
END PROGRAM HELLO
You don't have an extension for debugging 'Fortran-Morden'. Should we find a 'Fortran-Morden' extension in the Marketplace?
s4.png (178.36 KB, 下载次数: 176)
截图4
s3.png (161.08 KB, 下载次数: 180)
截图3
s2.png (181.23 KB, 下载次数: 180)
截图2
s1.png (203.39 KB, 下载次数: 178)
截图1
zoziha 发表于 2023-10-5 23:11
只要安装 Modern Fortran 插件和 pip install fortls 就行,然后稍微阅读以下 Modern Fortran 插件的使用介 ...
s7.png (225.25 KB, 下载次数: 173)
s6.png (209 KB, 下载次数: 172)
s5.png (274.49 KB, 下载次数: 175)
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |