Skip to content

Debugging with VSCode

Hidenori Matsubayashi edited this page Jul 30, 2021 · 17 revisions

Install extensions

Install the VS Code extension to Flutter: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

Create launch.json

Create a launch.json file like the following.

{
  "version": "0.2.0"
  "configurations": [
    {
      "type": "dart",
      "name": "Flutter eLinux desktop Attach",
      "request": "attach",
      "deviceId": "flutter-tester",
      "observatoryUri": "http://127.0.0.1:40409/k8IUol2dnPI=/"
    }
  ]
}

Flutter attach debugger

Click Run and Debug Screenshot from 2021-07-30 16-57-33