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
e71514c6
Commit
e71514c6
authored
Apr 08, 2026
by
qq_38816927
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/ArkTs'
parents
37994912
4db87e81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
DebugDataDemo.kt
...commonMain/kotlin/com.dong.demo013/debug/DebugDataDemo.kt
+1
-1
DebugJson.kt
...src/commonMain/kotlin/com.dong.demo013/debug/DebugJson.kt
+8
-3
libkn_api.h
harmonyApp/entry/src/main/cpp/include/libkn_api.h
+12
-10
No files found.
composeApp/src/commonMain/kotlin/com.dong.demo013/debug/DebugDataDemo.kt
View file @
e71514c6
...
...
@@ -77,7 +77,7 @@ fun testCommonBreakpoint() {
}
fun
tenComplexObject
(){
val
testObject
=
Debug
TenLevelData
.
sample
;
val
testObject
=
Debug
AllTypesData
()
;
print
(
"多层复杂对象查看"
)
//断点多层复杂变量查看
}
...
...
composeApp/src/commonMain/kotlin/com.dong.demo013/debug/DebugJson.kt
View file @
e71514c6
...
...
@@ -113,15 +113,20 @@ class DebugAllTypesData {
}
// Nothing 类型(永远不会返回,比如抛出异常或无限循环)
fun
nothingFunction
():
Nothing
{
throw
IllegalArgumentException
(
"永远不会返回"
)
}
//
fun nothingFunction(): Nothing {
//
throw IllegalArgumentException("永远不会返回")
//
}
// Any 类型(所有非空类型的超类,类似 Java 的 Object)
val
anyValue
:
Any
=
"可以是任何类型"
val
anyNumber
:
Any
=
42
val
anyBoolean
:
Any
=
true
//3个class
val
c1
:
ComplexClass1
=
ComplexClass1
()
val
c2
:
ComplexClass2
=
ComplexClass2
()
val
c3
:
ComplexClass
=
ComplexClass
()
// ========== 打印所有变量 ==========
fun
printAllTypes
()
{
println
(
"=== 数字类型 ==="
)
...
...
harmonyApp/entry/src/main/cpp/include/libkn_api.h
View file @
e71514c6
...
...
@@ -75,6 +75,15 @@ typedef struct {
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_kotlin_ByteArray
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexClass1
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexClass2
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexClass
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_kotlin_Function1
;
...
...
@@ -99,15 +108,6 @@ typedef struct {
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_kotlin_ShortArray
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexClass
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexClass1
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexClass2
;
typedef
struct
{
libkn_KNativePtr
pinned
;
}
libkn_kref_com_dong_demo013_debug_ComplexNode
;
...
...
@@ -282,6 +282,9 @@ typedef struct {
libkn_KBoolean
(
*
get_booleanTrue
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_kotlin_ByteArray
(
*
get_byteArray
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_KByte
(
*
get_byteValue
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_com_dong_demo013_debug_ComplexClass1
(
*
get_c1
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_com_dong_demo013_debug_ComplexClass2
(
*
get_c2
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_com_dong_demo013_debug_ComplexClass
(
*
get_c3
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_kotlin_Function1
(
*
get_callback
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_KChar
(
*
get_charEscape
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_kotlin_CharArray
(
*
get_charPrimitiveArray
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
...
...
@@ -323,7 +326,6 @@ typedef struct {
const
char
*
(
*
get_userName
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
libkn_kref_kotlin_Int
(
*
getLength
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
,
const
char
*
str
);
libkn_KInt
(
*
getLengthOrDefault
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
,
const
char
*
str
);
void
(
*
nothingFunction
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
void
(
*
printAllTypes
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
void
(
*
unitFunction
)(
libkn_kref_com_dong_demo013_debug_DebugAllTypesData
thiz
);
}
DebugAllTypesData
;
...
...
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