Debugger class

Properties

appContext Completer<BuildContext>
final
customRootDirs Map<String, String>
no setter
hashCode int
The hash code for this object.
no setterinherited
rootRepaintBoundaryKey GlobalKey<State<StatefulWidget>>?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
no setter

Methods

addCustomDirToRoot(String name, String absolute) → void
添加自定义文件夹到root显示 如 下载目录、缓存目录等
customDebugPrint(String message) → void
打印日志 会发送给web; 解决release包中的debugPrint无法打印问题
findRootOverlay() Future<OverlayState?>
hideDebugger() → void
隐藏浮窗
hideDebuggerDialog(BuildContext ctx) → dynamic
隐藏主页面
init({String toolTitle = 'KDebugTools', bool autoStartWebServer = false, bool autoStartHttpHook = false, List<String>? allServEnvKeys, List<ServerEnvConfig>? allServConfigs}) Future<void>
初始化
isFloatingDebuggerShowing() bool
浮窗是否显示中
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushNamed(NavigatorState navigatorState, String? url) Future
registerDbFile(String filePath) → void
手动添加数据库文件
registerItemToDebuggingGroup(ItemBuilder item) → void
添加组件到 调试
registerItemToInfoGroup(ItemBuilder item) → void
添加组件到 信息
registerItemToKitGroup(ItemBuilder item) → void
添加组件到 工具
registerItemToOtherGroup(ItemBuilder item) → void
添加组件到 其他
setCustomPushNamed(PushNamedCallback callback) → void
自定义跳转方法
showDebugger(BuildContext context) → void
显示浮窗
showDebuggerDialog(BuildContext ctx, {String? initialRoute}) → void
显示主页面
toString() String
A string representation of this object.
inherited
updateRootRepaintBoundary(GlobalKey<State<StatefulWidget>> key) → void
更新根节点key 会用于屏幕截图, 若未指定会寻找最顶部一个RenderRepaintBoundary进行截图

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Debugger
final