Skip to content

Debugging flutter elinux tool

Hidenori Matsubayashi edited this page May 29, 2023 · 2 revisions

Snapshot

flutter-elinux tool creates its snapshot (compiled Dart code) when it's run for the first time. To force the snapshot to be re-generated, delete bin/cache/flutter-elinux.s* files.

Debugging with VSCode

Create launch.json

Create a launch.json file like the following.

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "flutter-elinux",
      "request": "launch",
      "type": "dart",
      "cwd": "${workspaceFolder}",
      "program": "${workspaceFolder}/bin/flutter_elinux.dart",
      "args": ["doctor"]
    }
  ]
}