Questions tagged [flutter-debug]

47 questions
278
votes
12 answers

How can I check if a Flutter application is running in debug?

I'm looking for a way to execute code in Flutter when the app is in Debug mode. Is that possible in Flutter? I can't seem to find it anywhere in the documentation. Something like this If(app.inDebugMode) { print("Print only in debug…
Kevin Walter
  • 6,507
  • 8
  • 28
  • 32
19
votes
3 answers

Using brave browser to debug flutter web app

I just started-off with flutter web and I want to use brave browser to debug my flutter apps not chrome or edge. When I use flutter devices command, it gives the following result. No devices detected. Run "flutter emulators" to list and start any…
ASAD HAMEED
  • 2,296
  • 1
  • 20
  • 36
14
votes
2 answers

Flutter debugging release mode, enable logs in release mode

I know based on documentation that Debugging information is stripped out. Debugging is disabled. But can we somehow force to print logs, or maybe debug in release mode? "production app" I'm using Android Studio. For example while developing…
Jakub S.
  • 5,580
  • 2
  • 42
  • 37
6
votes
3 answers

Console Messages in Flutter

I am currently in the master channel in Flutter on Version 2.6.0-12.0.pre.406 and every time i run an app im getting these strange messages in the console and i just wanna know why and what they mean and if i can ignore these. This even happens…
6
votes
1 answer

How to solve flutter project compile Debug Kotlin error

I'm new to flutter development. I used audioplayers: ^0.19.0 package in one project but when the project runs on an emulator it pops up with big error messages. Can you guys please help me to solve this? I have no idea about is it my code error or a…
5
votes
2 answers

Flutter Error: cmake error : debugging new project

I just start a new flutter project in vscode , when I want debugging the project , I got Error: Could not find compiler set in environment variable CXX: clang++. Call Stack (most recent call first): CMakeLists.txt:3 (project) CMake Error:…
irmoah80
  • 131
  • 1
  • 8
2
votes
7 answers

Unable to run Flutter project on Android after update

I've been trying to get my Flutter project to run after upgrading it to 2.10.4 and it's been a headache from the start. The project runs fine on a browser, but I'm having difficulty running on an Android emulator. I think I'm at the last hurdle, but…
2
votes
0 answers

Flutter debug runs on one iOS 14 device, but won't run on another iOS 14 device

I have two iOS devices, iPhone 8 and iPhone 12 mini, both runs iOS 14.4. Flutter debug works normally on iPhone 8, but it won't launch app on iPhone 12 mini. It will hang on launch screen and then just exit. Running "flutter pub get" in…
mileusna
  • 624
  • 6
  • 11
2
votes
0 answers

Debugging Flutter with two devices running

I've started two emulators and I am trying to run a Flutter app in debug mode but it won't allow me because there's the second emulator open. I actually need the second emulator, as I've converted an Android app into Flutter and I need to debug each…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
2
votes
0 answers

Can I test an APK file with Dart Devtool, without having source code?

I am testing an .APK file made with Flutter with CharlesProxy to inspect the network traffic, At this moment I have a problem with inspiring WebSockets network traffic wss://, Websockets are not available to inspect. 1- Is there any way to enable…
1
vote
0 answers

Flutter Logger Package not printing Emoji, colors

I am using flutter Logger Package logger: ^2.0.1 I am using all the default settings they mentioned var logger = Logger( printer: PrettyPrinter( methodCount: 2, // Number of method calls to be displayed errorMethodCount: 8, //…
1
vote
2 answers

Flutter build fails with 'this and base files have different roots' error

flutter build fails Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'. this and base files have different roots: D:\untitled\build\flutter_plugin_android_lifecycle and…
1
vote
1 answer

How can one rename a connectd device in Flutter run command?

In Flutter one can check available connected devices using flutter devices. When running one can do flutter run -d . It turns out some devices have very long names, with numbers and letters combined. Is there a way to rename a connected…
Amani
  • 16,245
  • 29
  • 103
  • 153
1
vote
0 answers

Flutter - Debugging iOS 14 background message (when the app is closed)

Trying to build a chat app, which gets FCM messages and shows notifications even when the app is closed. Clearly, something in my top-level onBackgroundMessage function for FCM is wrong as the notifications are not showing (on a physical device- iOS…
yoni keren
  • 300
  • 2
  • 14
1
vote
2 answers

Flutter Execution failed for task ':app:processDebugManifest'

I am new with Flutter, at first my projects were running good but suddenly I started getting this problem: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugMainManifest'. Unable to make field…
1
2 3 4