在 Android Studio 中,我只想调试我的代码,但介入以继续使用依赖库。我看到question , also ,但它们并不能解决问题。我找不到不调试到 message_codecs.dart、message_codecs.dart 或 method_channel_firebase_auth.dart (firebase_auth_platform_interface-1.1.2) 的方法。我也看了可以disable or enable all exception ,但那是我不想要的。
我只是不想介入这些系统(依赖项)库。请让我知道是否有任何解决方案。
最佳答案
2A。然后你搜索
debugSdkLibraries
和 dart.debugExternalLibraries
并确保它们未被选中。 2B。或者您可以通过添加以下内容来编辑 JSON 文件中的设置:
"dart.debugSdkLibraries": false,
"dart.debugExternalLibraries": false,
例如。这是我的完整设置文件:https://gist.github.com/tomasbaran/cd0ba7cadec4466356d1dc0faa14f1e2
关于android-studio - Android Studio IDE : how to debug through my code only in Flutter?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59922464/