Commit dfd89616 authored by qq_38816927's avatar qq_38816927

attach

parent c526145b
......@@ -73,19 +73,14 @@ internal fun HomeScreen(
modifier = Modifier.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(8.dp)
) {
Text("数据类型")
Text("断点测试")
Button(
onClick = {
val debugDataDemo = ComponentDemo(
id = "debug_test_demo",
title = "断点调试-数据类型",
group = ComposeGroup.Foundation
)
onSelect(debugDataDemo)
allBreakpoints()
},
modifier = Modifier.fillMaxWidth()
) {
Text("进入断点测试-数据类型")
Text("attach断点测试触发")
}
}
......
......@@ -92,7 +92,7 @@ fun testCommonBreakpoint() {
val a: Int=1;
print("a=1");//普通断点设置处
val b: Int=2;
print("b=2");//普通断点禁用设置
print("b=2");//普通断点禁用
val c: Int=3;
print("c=3");//普通断点设置处2
}
......
......@@ -10,6 +10,7 @@ struct Index {
private controller: ArkUIViewController | undefined = undefined;
@State errorMessage: string = 'Native module not ready';
ab
aboutToAppear() {
//ArkTs生命周期断点处
......@@ -18,6 +19,7 @@ struct Index {
this.errorMessage = 'nativeApi is undefined';
return;
}
try {
this.controller = nativeApi.MainArkUIViewController();
const state = this.controller ? 'created' : 'not_created';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment