4

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.

3
  • 1
    what do you really mean by "skip"? Commented 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. Commented 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. Commented Jun 22, 2021 at 12:53

2 Answers 2

0

After i added this, the debug stopped after a few step into. Nothing happened "dart.debugSdkLibraries": false, "dart.debugExternalLibraries": false,

Sign up to request clarification or add additional context in comments.

1 Comment

Seems the same as the other answer
0

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

adding these lines in vscode launch,json doesn't work, it still goes to framework.dart
@IrfanYusanif Not to vscode launch but to VSCode user settings. Take a look at my answer again. I updated it to be clearer.
@IrfanY they renamed it to: dart.debugExternalPackageLibraries that's probably why it was not working for you. Now, @Danny updated the answer. Cheers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.