Flutter-ISAR-How to open the inspector

Viewed 488

I have been trying to find a way to open the isar database inspector. But I don't find any way to how to open the isar inspector. Please help.

2 Answers
  1. Set inspector:true in Isar.open()
Isar.open(
      schemas: [...],
      directory: dir.path,
      inspector: true,
    );
  1. Download and install the isar inspector here for windows and here for mac

  2. Look for this link in the logs ws://127.0.0.1:63001/addadada=/ copy it.

flutter: ╔════════════════════════════════════════╗
flutter: ║          ISAR CONNECT STARTED          ║
flutter: ╟────────────────────────────────────────╢
flutter: ║ Open the Isar Inspector and enter the  ║
flutter: ║ following URL to connect:              ║
flutter: ╟────────────────────────────────────────╢
flutter: ║   ws://127.0.0.1:63001/addadada=/      ║
flutter: ╚════════════════════════════════════════╝
  1. Open the isar inspector and paste this link.

According to ISAR homepage, there are now only an executable to access the inspector, with the link generated in debug output, just for Mac (https://github.com/isar/isar) and in issues discussion, #snhmehta posted a Windows version (https://github.com/isar/isar/issues/90). Just remember to enable the inspector with inspect:true in your application.

Related