libraryIsDebuggable method
Checks whether a library URI should be considered debuggable.
Initial values are provided in the launch arguments, but may be updated
by the updateDebugOptions
custom request.
Implementation
Future<bool> libraryIsDebuggable(ThreadInfo thread, Uri uri) async {
if (isSdkLibrary(uri)) {
return isolateManager.debugSdkLibraries;
} else if (!isolateManager.debugExternalPackageLibraries &&
await isExternalPackageLibrary(thread, uri)) {
return false;
} else {
return true;
}
}