Commit dfd89616 authored by qq_38816927's avatar qq_38816927

attach

parent c526145b
...@@ -73,19 +73,14 @@ internal fun HomeScreen( ...@@ -73,19 +73,14 @@ internal fun HomeScreen(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(8.dp) verticalArrangement = Arrangement.spacedBy(8.dp)
) { ) {
Text("数据类型") Text("断点测试")
Button( Button(
onClick = { onClick = {
val debugDataDemo = ComponentDemo( allBreakpoints()
id = "debug_test_demo",
title = "断点调试-数据类型",
group = ComposeGroup.Foundation
)
onSelect(debugDataDemo)
}, },
modifier = Modifier.fillMaxWidth() modifier = Modifier.fillMaxWidth()
) { ) {
Text("进入断点测试-数据类型") Text("attach断点测试触发")
} }
} }
......
...@@ -92,7 +92,7 @@ fun testCommonBreakpoint() { ...@@ -92,7 +92,7 @@ fun testCommonBreakpoint() {
val a: Int=1; val a: Int=1;
print("a=1");//普通断点设置处 print("a=1");//普通断点设置处
val b: Int=2; val b: Int=2;
print("b=2");//普通断点禁用设置 print("b=2");//普通断点禁用
val c: Int=3; val c: Int=3;
print("c=3");//普通断点设置处2 print("c=3");//普通断点设置处2
} }
......
...@@ -10,6 +10,7 @@ struct Index { ...@@ -10,6 +10,7 @@ struct Index {
private controller: ArkUIViewController | undefined = undefined; private controller: ArkUIViewController | undefined = undefined;
@State errorMessage: string = 'Native module not ready'; @State errorMessage: string = 'Native module not ready';
ab
aboutToAppear() { aboutToAppear() {
//ArkTs生命周期断点处 //ArkTs生命周期断点处
...@@ -18,6 +19,7 @@ struct Index { ...@@ -18,6 +19,7 @@ struct Index {
this.errorMessage = 'nativeApi is undefined'; this.errorMessage = 'nativeApi is undefined';
return; return;
} }
try { try {
this.controller = nativeApi.MainArkUIViewController(); this.controller = nativeApi.MainArkUIViewController();
const state = this.controller ? 'created' : 'not_created'; 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