Я использую код VS для разработки флаттера. Я использую версию 1.39.2. Когда я ставлю точку останова, приложение не останавливается на этой точке останова. Это работало в одной из предыдущих версий, но я не помню, какая именно. Приложение является приложением по умолчанию, созданным с помощью «flutter create app». Я попытался удалить все и начать снова, но безуспешно.
Запустить конфигурацию:
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
// "vmAdditionalArgs": ["--debug", "--stacktrace", "--verbose"],
"args": ["--debug", "--enable-software-rendering"]
}
Вот журнал:
Dart Code extension: 3.6.0
Flutter extension: 3.6.0 (activated)
VS Code: 1.39.2
Platform: linux
Workspace type: Flutter
Multi-root?: false
Dart SDK:
Loc: /opt/flutter/bin/cache/dart-sdk
Ver: 2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db
Flutter SDK:
Loc: /opt/flutter
Ver: 1.9.1+hotfix.5
HTTP_PROXY: undefined
NO_PROXY: undefined
[1:01:19 PM]: Spawning /opt/flutter/bin/flutter with args ["run","--machine","--target","lib/main.dart","-d","emulator-5554","--track-widget-creation","--start-paused","--debug","--enable-software-rendering"]
[1:01:19 PM]: .. in .../aa
[1:01:19 PM]: PID: 30526
[1:01:20 PM]: <== [{"event":"daemon.connected","params":{"version":"0.5.3","pid":5093}}]
[1:01:20 PM]: <== [{"event":"app.start","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","deviceId":"emulator-5554","directory":".../aa","supportsRestart":true,"launchMode":"run"}}]
[1:01:20 PM]: <== Launching lib/main.dart on Android SDK built for x86 in debug mode...
[1:01:20 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"0","progressId":null,"message":"Initializing gradle..."}}]
[1:01:21 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"0","progressId":null,"finished":true}}]
[1:01:21 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"1","progressId":null,"message":"Resolving dependencies..."}}]
[1:01:22 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"1","progressId":null,"finished":true}}]
[1:01:22 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"2","progressId":null,"message":"Running Gradle task 'assembleDebug'..."}}]
[1:01:33 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"2","progressId":null,"finished":true}}]
[1:01:33 PM]: <== Built build/app/outputs/apk/debug/app-debug.apk.
[1:01:34 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"3","progressId":null,"message":"Installing build/app/outputs/apk/app.apk..."}}]
[1:01:35 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"3","progressId":null,"finished":true}}]
[1:01:37 PM]: <== [{"event":"app.debugPort","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","port":46545,"wsUri":"ws://127.0.0.1:46545/DFQwU_ajSt0=/ws","baseUri":"file:///data/user/0/com.example.aa/code_cache/aaMQUJJD/aa/"}}]
[1:01:37 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"4","progressId":null,"message":"Syncing files to device Android SDK built for x86..."}}]
[1:01:38 PM]: <== [{"event":"app.progress","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","id":"4","progressId":null,"finished":true}}]
[1:01:38 PM]: <== [{"event":"app.started","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c"}}]
[1:01:39 PM]: ==> [{"id":"1","method":"app.callServiceExtension","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","methodName":"ext.flutter.platformOverride"}}]
[1:01:39 PM]: ==> [{"id":"2","method":"app.callServiceExtension","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","methodName":"ext.flutter.inspector.structuredErrors","params":{"enabled":true}}}]
[1:01:39 PM]: ==> [{"id":"3","method":"app.callServiceExtension","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","methodName":"ext.flutter.inspector.setPubRootDirectories","params":{"arg0":".../aa","arg1":".../aa","isolateId":"isolates/945852035507887"}}}]
[1:01:39 PM]: ==> [{"id":"4","method":"app.callServiceExtension","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c","methodName":"ext.flutter.inspector.isWidgetCreationTracked"}}]
[1:01:39 PM]: <== D/ (24631): HostConnection::get() New Host Connection established 0x8f4a5440, tid 24652
[1:01:39 PM]: <== [{"id":"1","result":{"value":"android","type":"_extensionType","method":"ext.flutter.platformOverride"}}]
[1:01:39 PM]: <== [{"id":"2","result":{"enabled":"true","type":"_extensionType","method":"ext.flutter.inspector.structuredErrors"}}]
[1:01:39 PM]: <== [{"id":"3","result":{"result":null,"type":"_extensionType","method":"ext.flutter.inspector.setPubRootDirectories"}}]
[1:01:39 PM]: <== [{"id":"4","result":{"result":true,"type":"_extensionType","method":"ext.flutter.inspector.isWidgetCreationTracked"}}]
[1:12:18 PM]: ==> [{"id":"5","method":"app.stop","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c"}}]
[1:12:18 PM]: <== Application finished.
[1:12:18 PM]: <== [{"id":"5","result":true}]
[1:12:18 PM]: <== [{"event":"app.stop","params":{"appId":"8a6c66aa-23c2-4d16-82ba-4854ae514c2c"}}]
У вас есть какие-либоИдея горячая, чтобы решить эту проблему?
Спасибо peperk * 1011 *