I set up a breakpoint in my code, and when I go into the debug mode it stops at the breakpoint. When I step into or over, instead of going to the next line of my source code the debugger takes me into the SDK source code.
我在代码中设置了断点,当我进入调试模式时,它会在断点处停止。当我进入或结束时,调试器将我带入SDK源代码,而不是转到我的源代码的下一行。
How can I avoid this and only view the debugging of source which I wrote?
我怎样才能避免这种情况,只查看我编写的源代码的调试?
3 个解决方案
#1
1
This will happen when you step into code which you did not write (i.e. other dex bytecode), so you need to step over these lines. This will also happen if an exception is thrown, so be careful of that as well. Otherwise, it should work just fine.
当您单步执行未编写的代码(即其他dex字节码)时会发生这种情况,因此您需要跨越这些行。如果抛出异常也会发生这种情况,所以也要小心。否则,它应该工作得很好。
Is there a specific issue you're running into?
你遇到了一个特定的问题吗?
#2
3
You need to set up Step Filtering in Eclipse Preferences->Java->Debug->Step Filtering And add the classes you want to ignore
您需要在Eclipse Preferences-> Java-> Debug-> Step Filtering中设置Step Filtering并添加您要忽略的类
#3
0
When you are in not your code - click "Step Return" (Arrow Up-Right) and you will return to your code.
当您不在您的代码中时 - 单击“Step Return”(向上箭头向右),您将返回到您的代码。
#1
1
This will happen when you step into code which you did not write (i.e. other dex bytecode), so you need to step over these lines. This will also happen if an exception is thrown, so be careful of that as well. Otherwise, it should work just fine.
当您单步执行未编写的代码(即其他dex字节码)时会发生这种情况,因此您需要跨越这些行。如果抛出异常也会发生这种情况,所以也要小心。否则,它应该工作得很好。
Is there a specific issue you're running into?
你遇到了一个特定的问题吗?
#2
3
You need to set up Step Filtering in Eclipse Preferences->Java->Debug->Step Filtering And add the classes you want to ignore
您需要在Eclipse Preferences-> Java-> Debug-> Step Filtering中设置Step Filtering并添加您要忽略的类
#3
0
When you are in not your code - click "Step Return" (Arrow Up-Right) and you will return to your code.
当您不在您的代码中时 - 单击“Step Return”(向上箭头向右),您将返回到您的代码。