Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TestToolChainDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
dsq
TestToolChainDemo
Commits
a220503f
Commit
a220503f
authored
Apr 08, 2026
by
qq_38816927
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改按钮
parent
e71514c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
14 deletions
+68
-14
App.kt
composeApp/src/commonMain/kotlin/com.dong.demo013/App.kt
+28
-13
DebugDataDemo.kt
...commonMain/kotlin/com.dong.demo013/debug/DebugDataDemo.kt
+7
-1
DebugJson.kt
...src/commonMain/kotlin/com.dong.demo013/debug/DebugJson.kt
+10
-0
libkn_api.h
harmonyApp/entry/src/main/cpp/include/libkn_api.h
+23
-0
No files found.
composeApp/src/commonMain/kotlin/com.dong.demo013/App.kt
View file @
a220503f
...
@@ -19,6 +19,7 @@ import com.dong.demo013.debug.allBreakpoints
...
@@ -19,6 +19,7 @@ import com.dong.demo013.debug.allBreakpoints
import
com.dong.demo013.debug.debugall
import
com.dong.demo013.debug.debugall
import
com.dong.demo013.debug.tenComplexObject
import
com.dong.demo013.debug.tenComplexObject
import
com.dong.demo013.debug.testFrame1
import
com.dong.demo013.debug.testFrame1
import
com.dong.demo013.debug.threeComplexObject
import
com.dong.demo013.navigation.ComponentDemo
import
com.dong.demo013.navigation.ComponentDemo
import
com.dong.demo013.navigation.ComposeGroup
import
com.dong.demo013.navigation.ComposeGroup
import
com.dong.demo013.navigation.Page
import
com.dong.demo013.navigation.Page
...
@@ -97,18 +98,18 @@ internal fun HomeScreen(
...
@@ -97,18 +98,18 @@ internal fun HomeScreen(
)
{
)
{
Text
(
"测试不同线帧变量"
)
Text
(
"测试不同线帧变量"
)
}
}
//
Button
(
//
Button(
onClick
=
{
//
onClick = {
val
list
=
listOf
(
"A"
,
"B"
,
"C"
)
//
val list = listOf("A", "B", "C")
// 直接越界访问 - 立即崩溃
//
// 直接越界访问 - 立即崩溃
val
item
=
list
[
5
]
// ArrayIndexOutOfBoundsException
//
val item = list[5] // ArrayIndexOutOfBoundsException
println
(
item
)
//
println(item)
},
//
},
modifier
=
Modifier
.
fillMaxWidth
()
//
modifier = Modifier.fillMaxWidth()
)
{
//
) {
Text
(
"测试debug调试时应用退出"
)
//
Text("测试debug调试时应用退出")
}
//
}
Button
(
Button
(
onClick
=
{
onClick
=
{
// 触发卡死
// 触发卡死
...
@@ -122,6 +123,21 @@ internal fun HomeScreen(
...
@@ -122,6 +123,21 @@ internal fun HomeScreen(
}
}
}
// 复杂对象
Column
(
modifier
=
Modifier
.
fillMaxWidth
(),
verticalArrangement
=
Arrangement
.
spacedBy
(
8
.
dp
)
)
{
Button
(
onClick
=
{
threeComplexObject
()
},
modifier
=
Modifier
.
fillMaxWidth
()
)
{
Text
(
"普通复杂对象断点测试触发"
)
}
}
}
// 复杂对象
// 复杂对象
Column
(
Column
(
...
@@ -137,7 +153,6 @@ internal fun HomeScreen(
...
@@ -137,7 +153,6 @@ internal fun HomeScreen(
Text
(
"多层复杂对象断点测试触发"
)
Text
(
"多层复杂对象断点测试触发"
)
}
}
}
}
Column
(
Column
(
modifier
=
Modifier
.
fillMaxWidth
(),
modifier
=
Modifier
.
fillMaxWidth
(),
...
...
composeApp/src/commonMain/kotlin/com.dong.demo013/debug/DebugDataDemo.kt
View file @
a220503f
...
@@ -76,9 +76,15 @@ fun testCommonBreakpoint() {
...
@@ -76,9 +76,15 @@ fun testCommonBreakpoint() {
print
(
"c=3"
);
//普通断点设置处2
print
(
"c=3"
);
//普通断点设置处2
}
}
fun
threeComplexObject
()
{
val
testObject
=
ComplexThreeClass
();
print
(
"普通复杂对象查看"
)
//普通复杂变量查看时间
}
fun
tenComplexObject
(){
fun
tenComplexObject
(){
val
testObject
=
DebugAllTypesData
();
val
testObject
=
DebugAllTypesData
();
print
(
"多层复杂对象查看"
)
//断点多层复杂变量查看
print
(
testObject
.
intArray
)
//全类型复杂对象查看时间
}
}
//测试条件断点
//测试条件断点
...
...
composeApp/src/commonMain/kotlin/com.dong.demo013/debug/DebugJson.kt
View file @
a220503f
...
@@ -195,4 +195,14 @@ class ComplexClass1 {
...
@@ -195,4 +195,14 @@ class ComplexClass1 {
class
ComplexClass2
{
class
ComplexClass2
{
val
name
:
String
=
"第三层"
val
name
:
String
=
"第三层"
}
class
ComplexThreeClass
{
val
name
:
String
=
"3个普通3个复杂"
val
myNumber
:
Int
=
1
val
intArray
:
Array
<
Int
>
=
arrayOf
(
1
,
2
,
3
,
4
,
5
)
val
c1
:
ComplexClass1
=
ComplexClass1
()
val
c2
:
ComplexClass2
=
ComplexClass2
()
val
c3
:
ComplexClass
=
ComplexClass
()
}
}
\ No newline at end of file
harmonyApp/entry/src/main/cpp/include/libkn_api.h
View file @
a220503f
...
@@ -108,6 +108,9 @@ typedef struct {
...
@@ -108,6 +108,9 @@ typedef struct {
typedef
struct
{
typedef
struct
{
libkn_KNativePtr
pinned
;
libkn_KNativePtr
pinned
;
}
libkn_kref_kotlin_ShortArray
;
}
libkn_kref_kotlin_ShortArray
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
;
typedef
struct
{
typedef
struct
{
libkn_KNativePtr
pinned
;
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexNode
;
}
libkn_kref_com_dong_demo013_debug_ComplexNode
;
...
@@ -346,6 +349,16 @@ typedef struct {
...
@@ -346,6 +349,16 @@ typedef struct {
libkn_kref_com_dong_demo013_debug_ComplexClass2
(
*
ComplexClass2
)();
libkn_kref_com_dong_demo013_debug_ComplexClass2
(
*
ComplexClass2
)();
const
char
*
(
*
get_name
)(
libkn_kref_com_dong_demo013_debug_ComplexClass2
thiz
);
const
char
*
(
*
get_name
)(
libkn_kref_com_dong_demo013_debug_ComplexClass2
thiz
);
}
ComplexClass2
;
}
ComplexClass2
;
struct
{
libkn_KType
*
(
*
_type
)(
void
);
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
(
*
ComplexThreeClass
)();
libkn_kref_com_dong_demo013_debug_ComplexClass1
(
*
get_c1
)(
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
thiz
);
libkn_kref_com_dong_demo013_debug_ComplexClass2
(
*
get_c2
)(
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
thiz
);
libkn_kref_com_dong_demo013_debug_ComplexClass
(
*
get_c3
)(
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
thiz
);
libkn_kref_kotlin_Array
(
*
get_intArray
)(
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
thiz
);
libkn_KInt
(
*
get_myNumber
)(
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
thiz
);
const
char
*
(
*
get_name
)(
libkn_kref_com_dong_demo013_debug_ComplexThreeClass
thiz
);
}
ComplexThreeClass
;
struct
{
struct
{
libkn_KType
*
(
*
_type
)(
void
);
libkn_KType
*
(
*
_type
)(
void
);
libkn_kref_com_dong_demo013_debug_ComplexNode
(
*
ComplexNode
)();
libkn_kref_com_dong_demo013_debug_ComplexNode
(
*
ComplexNode
)();
...
@@ -805,6 +818,7 @@ typedef struct {
...
@@ -805,6 +818,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter
)();
...
@@ -824,11 +838,13 @@ typedef struct {
...
@@ -824,11 +838,13 @@ typedef struct {
void
(
*
testCommonBreakpoint
)();
void
(
*
testCommonBreakpoint
)();
void
(
*
testConditionalBreakpoint
)();
void
(
*
testConditionalBreakpoint
)();
void
(
*
testIfBreakpoint
)();
void
(
*
testIfBreakpoint
)();
void
(
*
threeComplexObject
)();
libkn_KInt
(
*
com_dong_demo013_debug_BranchLayer
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_BranchLayer
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter_
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter_
)();
...
@@ -847,6 +863,7 @@ typedef struct {
...
@@ -847,6 +863,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter__
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter__
)();
...
@@ -869,6 +886,7 @@ typedef struct {
...
@@ -869,6 +886,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter___
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter___
)();
...
@@ -890,6 +908,7 @@ typedef struct {
...
@@ -890,6 +908,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter____
)();
...
@@ -911,6 +930,7 @@ typedef struct {
...
@@ -911,6 +930,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter_____
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter_____
)();
...
@@ -929,6 +949,7 @@ typedef struct {
...
@@ -929,6 +949,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter______
)();
...
@@ -947,6 +968,7 @@ typedef struct {
...
@@ -947,6 +968,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter_______
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter_______
)();
...
@@ -969,6 +991,7 @@ typedef struct {
...
@@ -969,6 +991,7 @@ typedef struct {
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass1
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexClass2
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexNode
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_ComplexThreeClass
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugAllTypesData
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelData
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter________
)();
libkn_KInt
(
*
com_dong_demo013_debug_DebugTenLevelRoot
$
stableprop_getter________
)();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment