For a brief introduction in English, please see it in the last half of this introduction. Thanks. 适用于 Visual Studio Code的 gfortran调试文件使用说明本插件需以下插件配合使用 fortran https://marketplace.visualstudio.com/items?itemName=Gimly81.fortran Fortran Breakpoint Support https://marketplace.visualstudio.com/items?itemName=ekibun.fortranbreaker FORTRAN IntelliSense https://marketplace.visualstudio.com/items?itemName=hansec.fortran-ls Modern Fortran https://marketplace.visualstudio.com/items?itemName=krvajalm.linter-gfortran 使用打开一个含有fortran文件的文件夹,打开一个fortran文件(后缀名.for或者.f90)。点击编辑器右上角的烧瓶,即可在本文件夹添加调试配置文件。 添加完成后,按键盘ctrl+F5运行代码。 示例代码
.vscode 文件夹中各个文件功能介绍tasks.json启动 gfortran.exe对本文件夹下的 fortran代码进行编译 launch.json调试参数文件。
settings.json减少按下Enter键时,在“插入新行”和“接受命令”的歧义。 Gfortran Debugging File for Visual Studio CodeInstructionsThis plug-in needs the following plug-ins to work together fortran https://marketplace.visualstudio.com/items?itemName=Gimly81.fortran Fortran Breakpoint Support https://marketplace.visualstudio.com/items?itemName=ekibun.fortranbreaker FORTRAN IntelliSense https://marketplace.visualstudio.com/items?itemName=hansec.fortran-ls Modern Fortran https://marketplace.visualstudio.com/items?itemName=krvajalm.linter-gfortran Open a FORTRAN file (suffix. for or. f90) by opening a folder containing FORTRAN files. Click the flask in the upper right corner of the editor to add debugging configuration files in this folder. After adding, press the keyboard Ctrl + F5 to run the code. Demo Code
Introduction to the functions of each file in the folder of .vscodetasks.jsonStart up gfortran.exe and compile the FORTRAN code in this folder. launch.jsonDebug parameter file.
settings.jsonReduce the ambiguity between insert new line and accept command when pressing ENTER. |