{ // Debug configurations for the Run and Debug panel (F5). // // Open the "Nuvolari" folder as the VS Code workspace root — these paths are // relative to it, not to the repository root. // // Every configuration boots the Android emulator first via a preLaunchTask, // so F5 works from a cold machine with no manual step. The task returns // immediately if a device is already attached. "version": "0.2.0", "configurations": [ { // The everyday one: demo mode, no env.json needed, hot reload on save. "name": "Nuvolari — debug (emulatore)", "type": "dart", "request": "launch", "program": "${workspaceFolder}/app/lib/main.dart", "cwd": "${workspaceFolder}/app", "deviceId": "emulator-5554", "flutterMode": "debug", "preLaunchTask": "Avvia emulatore Android" }, { // Debug builds run the Dart VM unoptimised, so animation always looks // worse than it is. Judge the radar timeline here, never in debug. "name": "Nuvolari — profile (misura le prestazioni)", "type": "dart", "request": "launch", "program": "${workspaceFolder}/app/lib/main.dart", "cwd": "${workspaceFolder}/app", "deviceId": "emulator-5554", "flutterMode": "profile", "preLaunchTask": "Avvia emulatore Android" }, { // Same as the first, but with real endpoints and keys. Requires env.json, // which is git-ignored — copy env.example.json and fill it in. "name": "Nuvolari — debug con env.json", "type": "dart", "request": "launch", "program": "${workspaceFolder}/app/lib/main.dart", "cwd": "${workspaceFolder}/app", "deviceId": "emulator-5554", "flutterMode": "debug", "toolArgs": ["--dart-define-from-file=${workspaceFolder}/env.json"], "preLaunchTask": "Avvia emulatore Android" }, { // Runs on the workstation instead of a device: no emulator, no Android // build, seconds to start. Good for UI work; the native map will not // render here, so it is useless for anything map-related. "name": "Nuvolari — debug su Windows (senza mappa)", "type": "dart", "request": "launch", "program": "${workspaceFolder}/app/lib/main.dart", "cwd": "${workspaceFolder}/app", "deviceId": "windows", "flutterMode": "debug" }, { "name": "Test — tutti", "type": "dart", "request": "launch", "program": "${workspaceFolder}/app/test", "cwd": "${workspaceFolder}/app" }, { "name": "Test — file corrente", "type": "dart", "request": "launch", "program": "${file}", "cwd": "${workspaceFolder}/app" } ] }