Closed JulienDev closed 3 months ago
can you debug in gdb?
Sorry but I don't know how I can debug it 😔
Le ven. 2 août 2024, 17:44, WangBin @.***> a écrit :
can you debug in gdb?
— Reply to this email directly, view it on GitHub https://github.com/wang-bin/fvp/issues/125#issuecomment-2265676723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARNMK4EBKUK7CFTBASWJLZPOSODAVCNFSM6AAAAABL4YVF7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRVGY3TMNZSGM . You are receiving this because you authored the thread.Message ID: @.***>
gdb path_of_executable
, then you will be in gdb interactive mode, type r
and return, then your app will run. If app crashes, show me gdb output
Thanks!
The problem seems only to happen with Android Studio because when I launch the app by running build/linux/x64/debug/bundle/myapp
everything is working perfectly.
If I launch it using "flutter run" it works too.
On other platforms MacOS/Android/iOS the app is launching in debug mode.
The problem seems only to happen with Android Studio because when I launch the app by running build/linux/x64/debug/bundle/myapp everything is working perfectly.
I don't understand, which target fails?
When I run the app in debug mode from Android Studio by pressing the "run button":
When I run the app in debug mode using "flutter run":
I don't know exactly why it's happening, maybe it's related to hotreload or something like that 🤷🏻♂️
android studio only supports android. why do you run win/linux in android studio? it's impossible.
No no, Android Studio supports all flutter targets: web, android, ios, windows, linux For example, this is a screenshot on my Mac, as you can see we can select the target we want to launch. Then hot reload will work fine on every target.
On Android Studio for Windows I can select windows target On Android Studio for Linux I can select linux target
Before adding FVP the app was launching perfectly for all targets
Please enable log following issue template, and paste the log
I can run linux in android studio without error
Ok, I think it's due to my project configuration because the sample is running fine. Will post a solution later if I find the reason. Thanks for your time 🙏🏻
Hi, just to add some more context:
I'm experiencing the same issue with the integrated vscode debugger. Running from the CLI flutter run ...
works just fine. It seems like the debugger is not able to attach until some hot reloads. The logs are virtually the same so it might be something related to the IDEs.
Hi, just to add some more context: I'm experiencing the same issue with the integrated vscode debugger. Running from the CLI
flutter run ...
works just fine. It seems like the debugger is not able to attach until some hot reloads. The logs are virtually the same so it might be something related to the IDEs.
IDE or debugger bug
Describe the bug I added Fvp v0.22.0 on Windows and Linux and the app is not launching anymore in debug mode. On other platforms MacOS/Android/iOS the app is launching in debug mode.
In release mode this is working fine on all platforms.
Flutter version: 3.22.3
Log Windows
Linux