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
4129a27f
Commit
4129a27f
authored
Apr 03, 2026
by
qq_38816927
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下一行区域扩展
parent
e493bea1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
DebugStepIntoDemo.kt
...onMain/kotlin/com.dong.demo013/debug/DebugStepIntoDemo.kt
+2
-2
Index.ets
harmonyApp/entry/src/main/ets/pages/Index.ets
+5
-1
No files found.
composeApp/src/commonMain/kotlin/com.dong.demo013/debug/DebugStepIntoDemo.kt
View file @
4129a27f
...
@@ -54,8 +54,8 @@ fun testIntoGrandfather(){
...
@@ -54,8 +54,8 @@ fun testIntoGrandfather(){
testIntoFather
();
// 测试步进断点-开始
testIntoFather
();
// 测试步进断点-开始
}
}
fun
testIntoFather
(){
// 测试步进断点-进入方法
fun
testIntoFather
(){
// 测试步进断点-进入方法
//otter2
testIntoKid
();
// 测试步进断点-结束
testIntoKid
();
// 测试步进断点-结束
//ladybug
}
}
fun
testIntoKid
(){
fun
testIntoKid
(){
...
...
harmonyApp/entry/src/main/ets/pages/Index.ets
View file @
4129a27f
...
@@ -2,6 +2,8 @@ import { ArkUIViewController, Compose } from 'compose';
...
@@ -2,6 +2,8 @@ import { ArkUIViewController, Compose } from 'compose';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import nativeApi from 'libentry.so';
import nativeApi from 'libentry.so';
import { testArkTsToArkTs } from './TestJumpClass';
import { testArkTsToArkTs } from './TestJumpClass';
//import测试区域
const DOMAIN = 0x0000;
const DOMAIN = 0x0000;
@Entry
@Entry
...
@@ -9,9 +11,11 @@ const DOMAIN = 0x0000;
...
@@ -9,9 +11,11 @@ const DOMAIN = 0x0000;
struct Index {
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';
aboutToAppear() {
aboutToAppear() {
hilog.info(DOMAIN, 'Compose', 'aboutToAppear');
//ArkTs生命周期断点处
//ArkTs生命周期断点处
if (nativeApi === undefined) {
if (nativeApi === undefined) {
...
@@ -25,6 +29,7 @@ struct Index {
...
@@ -25,6 +29,7 @@ struct Index {
//ArkTs到Kotlin的单向跳转
//ArkTs到Kotlin的单向跳转
nativeApi.testArkTsToKotin();
nativeApi.testArkTsToKotin();
//原生内部跳转
//原生内部跳转
testArkTsToArkTs();
testArkTsToArkTs();
...
@@ -98,7 +103,6 @@ function testFormat(){
...
@@ -98,7 +103,6 @@ function testFormat(){
//观察是否复位 代码自动格式化为"let a:number = 0;"
//观察是否复位 代码自动格式化为"let a:number = 0;"
//代码格式化测试点
//代码格式化测试点
}
}
//测试代码修复
//测试代码修复
...
...
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