Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>Fortran Breakpoint SupportNew to Visual Studio Code? Get it now.

Fortran Breakpoint Support

ekibun

|
41,341 installs
| (4) | Free
Add breakpoint support for fortran
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fortran Breakpoint Support

Add breakpoint support for fortran

Features

feature X

Requirements

  • Gimly81.fortran or krvajalm.linter-gfortran
  • ms-vscode.cpptools

Usage

  • Install MINGW-W64 (or other debugger) and all above extensions
  • Add .vscode/launch.json to project. An example:
{
    "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}"
        }
    ]
}
  • Add a build command to tasks.json. An example:
{
    "version": "0.0.1",
    "command": "gfortran",
    "args": [
        "-g",
        "${file}",
        "-o",
        "${workspaceRoot}\\${fileBasenameNoExtension}.exe"
    ]
}

Release Notes

0.0.4

Enable breakpoints for MSVC and support for krvajalm.linter-gfortran by emanspeaks

0.0.3

Enable breakpoints for Fortran - Modern by letmaik

0.0.2

Add icon and usage

0.0.1

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft