How can I add a break point in VSCode to a dart file from an imported package?

后端 未结 2 851
说谎
说谎 2021-01-23 16:04

When an exception is thrown from within a dart file from an imported package VSCode will automatically open that source file to show where the exception was thrown. Once this fi

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-23 16:45

    You need to enable one or two Dart Code settings:

    Add to your user settings the following:

    "dart.debugExternalLibraries": true,
    "dart.debugSdkLibraries": true,
    

    The first will allow debugging of pub packages; while the second will allow debugging of Flutter sdk.

提交回复
热议问题