android-studio - Android Studio IDE : how to debug through my code only in Flutter?

标签 android-studio debugging flutter dart step-into

在 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 ,但那是我不想要的。
我只是不想介入这些系统(依赖项)库。请让我知道是否有任何解决方案。

最佳答案

  • 转到 VS Code 用户设置。在 Mac 上,您可以通过单击 CMD + 进入 VS Code 设置,
    2A。然后你搜索 debugSdkLibrariesdart.debugExternalLibraries并确保它们未被选中。

  • enter image description here
    enter image description here
    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/

    相关文章:

    调试 Chrome 扩展的内容脚本

    flutter - 如何本地化 BottomNavigationBarItem 标签

    android - 升级到Gradle 4.0.0版打破了R8代码缩减

    android - 无法启动 android studio 无法加载 JVM DLL

    r - 如何调试非导出功能?

    flutter - 我需要显示阿拉伯日期选择器

    flutter - 找不到函数 debugPrint()

    android-studio - 插件 [id : 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' ] was not found in any of the following sources:

    android-studio - Android 模拟器不适用于 Ubuntu 16.10

    Flutter --split-debug-info 做了什么