Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.23 KB

debug-flutter-tizen.md

File metadata and controls

32 lines (27 loc) · 1.23 KB

Debugging the flutter-tizen tool

The flutter-tizen tool is written in Dart. It extends the original Flutter CLI's functionality by (basically) overriding some of its classes and methods at the code level.

  • The flutter-tizen tool creates its snapshot (compiled Dart code) when it's run for the first time. To run the tool directly from source, run this in the repository root:

    flutter/bin/dart bin/flutter_tizen.dart help
  • To force the snapshot to be re-generated, remove bin/cache/flutter-tizen.snapshot.

  • To debug the tool with the VS Code debugger,

    1. Add flutter-tizen directory to your workspace.
    2. Install the Dart extension for VS Code.
    3. Configure launch.json file as follows:

      {
        "version": "0.2.0",
        "configurations": [
          {
            "name": "flutter-tizen",
            "request": "launch",
            "type": "dart",
            "cwd": "${fileWorkspaceFolder}",
            "program": "${workspaceFolder}/bin/flutter_tizen.dart",
            "args": ["doctor"]
          }
        ]
      }
    4. Start debugging (F5).