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
1e6d01dc
Commit
1e6d01dc
authored
Apr 02, 2026
by
qq_38816927
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页滚动
parent
90bf7f82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
App.kt
composeApp/src/commonMain/kotlin/com.dong.demo013/App.kt
+18
-3
DebugStepIntoDemo.kt
...onMain/kotlin/com.dong.demo013/debug/DebugStepIntoDemo.kt
+1
-1
No files found.
composeApp/src/commonMain/kotlin/com.dong.demo013/App.kt
View file @
1e6d01dc
...
...
@@ -2,7 +2,9 @@ package com.dong.demo013
import
androidx.compose.foundation.background
import
androidx.compose.foundation.layout.*
import
androidx.compose.foundation.rememberScrollState
import
androidx.compose.foundation.shape.RoundedCornerShape
import
androidx.compose.foundation.verticalScroll
import
androidx.compose.material.*
import
androidx.compose.runtime.*
import
androidx.compose.ui.Modifier
...
...
@@ -54,8 +56,10 @@ internal fun HomeScreen(
Column
(
modifier
=
Modifier
.
fillMaxSize
()
.
padding
(
16
.
dp
),
verticalArrangement
=
Arrangement
.
spacedBy
(
16
.
dp
)
.
padding
(
16
.
dp
)
.
verticalScroll
(
rememberScrollState
())
,
verticalArrangement
=
Arrangement
.
spacedBy
(
16
.
dp
),
)
{
// 第一个模块:debug页面
Card
(
...
...
@@ -94,6 +98,18 @@ internal fun HomeScreen(
Text
(
"测试不同线帧变量"
)
}
Button
(
onClick
=
{
val
list
=
listOf
(
"A"
,
"B"
,
"C"
)
// 直接越界访问 - 立即崩溃
val
item
=
list
[
5
]
// ArrayIndexOutOfBoundsException
println
(
item
)
},
modifier
=
Modifier
.
fillMaxWidth
()
)
{
Text
(
"测试debug调试时应用退出"
)
}
}
// 复杂对象
...
...
@@ -101,7 +117,6 @@ internal fun HomeScreen(
modifier
=
Modifier
.
fillMaxWidth
(),
verticalArrangement
=
Arrangement
.
spacedBy
(
8
.
dp
)
)
{
Text
(
"10层复杂对象"
)
Button
(
onClick
=
{
tenComplexObject
()
...
...
composeApp/src/commonMain/kotlin/com.dong.demo013/debug/DebugStepIntoDemo.kt
View file @
1e6d01dc
...
...
@@ -59,7 +59,7 @@ fun testIntoFather(){// 测试步进断点-进入方法
}
fun
testIntoKid
(){
print
(
"
测试步进断点-结束
"
);
// print("测试步进断点-结束");
print
(
"
进入testIntoKid
"
);
// print("测试步进断点-结束");
}
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