(Android版Studio)如何通过我的$ C $调试C而已?
当我尝试(使用单步执行,F7命令)通过我的Android code调试,调试器需要我通过所有系统类,这是我不想要的。
When I try to debug through my code in Android (using Step Into, F7 command), the debugger takes me through all system classes, which I do not want.
例如,当我把一个断点下面的第二行(即startActivity(ourIntent);),而不是进入我的活动(即MyClass的),执行点进入Activity.java>仪表。 java的,等等......所有的系统类。
For example, when I place a breakpoint at the 2nd line below (i.e. "startActivity(ourIntent);"), instead of going into my Activity (i.e. "myclass), the execution point goes into Activity.java > Instrumentation.java, etc... all system classes.
我不希望出现这种情况。我只是想步我写了我的code。
I dont want that. I only want to step through my code that I have written.
什么是方法来实现这一目标?
What is a way to achieve this?
Intent ourIntent = new Intent(MainActivity.this, "com.practice.gamesbook.myclass");
startActivity(ourIntent);
在调试>步进被禁用
"Add new Pattern" option under "Debugger" > "Stepping" is disabled
到 Android Studio和GT; preferences>调试器>步进
然后在底部单击带有问号,说加箭头添加模式
。键入 Android系统。*
,点击OK,然后应用。
Go to Android Studio > Preferences > Debugger > Stepping
then in the bottom click the plus arrow with the question mark that says Add Pattern
. Type android.*
and hit OK and then Apply.