Debugkit
Ever hid debug functions in your UI? Here is now a clean way to do it!
Install / Use
/learn @hulab/DebugkitREADME
Android DebugKit
DebugKit lib for Android allows you to use a fancy hovering debug tool to trigger some actions directly in the app. This tool is very useful to trigger some event at runtime, and to have a written feedback directly on your testing phone screen.
Requirements
- Android SDK 15+
Example
You can download an example apk here : DebugKit-Example.apk
Installation
repositories {
jcenter()
}
dependencies {
compile 'com.hulab.android:debugkit:1.2.1'
}
Usage
final DevTool.Builder builder = new DevTool.Builder(mContext);
builder.addFunction(new DebugFunction() {
@Override
public String call() throws Exception {
log("doing some stuff...");
doSomeStuff();
return "Some stuff was done.";
}
}).addFunction(new DebugFunction() {
@Override
public String call() throws Exception {
log("doing some other stuff...");
doSomeStuff();
return "Some stuff was done.";
}
}).addFunction(new DebugFunction("My function") {
@Override
public String call() throws Exception {
log("doing some stuff again and again...");
doSomeStuff();
return "This function has a title!";
}
});
// This is a prebuilt function to clear the console, you can call clear() in any function
// as well.
.addFunction(new DebugFunction.Clear("Clear"))
// This is a prebuilt function to dump the content of your shared preferences file.
.addFunction(new DebugFunction.DumpSharedPreferences("Shared prefs", PREFS_FILE_NAME));
// optional, DevToolFragment.DevToolTheme.DARK is set by default
builder.setTheme(DevToolFragment.DevToolTheme.DARK)
//you can set the initial position of your debug tool (0,0) by default
.displayAt(100, 100)
.build();
Result
Here we have 3 debug tools, from top to bottom:
- LIGHT theme with 5 defined functions
- Minified mode (clicking on the top left corner arrow)
- DARK theme with 3 defined functions and the logged text when clicking on each F1, F2 and F3


Have fun!
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
