Is it possible to configure Android Studio Debugger to skip flutter framework files and packages files? Im not interested in Step Over or Step out because for example with redux after calling dispatch I want to step skip until the reducer that I wrote, without following all the framework and package files.
-
1what do you really mean by "skip"?pskink– pskink2019-08-21 10:59:50 +00:00Commented Aug 21, 2019 at 10:59
-
when I click 'step into' the debugger goes to the next line in code or the function in the files, so if the file is part of the framework or package then I want the debugger to skip those and stop again on one of the files that I wrote.Hontoni– Hontoni2019-08-22 07:01:11 +00:00Commented Aug 22, 2019 at 7:01
-
@Hontoni, any updates about this. I am having the same difficulty and can not figure out a way for a proper debugging.Suat Özkaya– Suat Özkaya2021-06-22 12:53:22 +00:00Commented Jun 22, 2021 at 12:53
Add a comment
|
2 Answers
After i added this, the debug stopped after a few step into. Nothing happened "dart.debugSdkLibraries": false, "dart.debugExternalLibraries": false,
1 Comment
D J
Seems the same as the other answer
I'm not sure about Android Studio but in VS Code, you just add to your user settings settings.json the following:
"dart.debugSdkLibraries": false,
"dart.debugExternalPackageLibraries": false,
You can get inspired by mine, or just copy my settings.json file from gist
So, I guess, there should be something similar in the Android Studio Settings as well.
3 Comments
Irfan Y
adding these lines in vscode launch,json doesn't work, it still goes to framework.dart
Tomas Baran
@IrfanYusanif Not to vscode launch but to VSCode user settings. Take a look at my answer again. I updated it to be clearer.
Tomas Baran
@IrfanY they renamed it to:
dart.debugExternalPackageLibraries that's probably why it was not working for you. Now, @Danny updated the answer. Cheers.