esp*_*chi 38 java eclipse debugging callstack
在调试时,Eclipse中的Debug视图显示调用堆栈.哪个好.但是我希望能够过滤掉我绝对不关心的所有调用,例如Spring和JUnit runner.
这是我现在调用堆栈的一个例子.我想把这些条目保持为粗体,同时隐藏所有其他条目.有可能以任何方式吗?(插件,下一个Eclipse发行版,配置......)
com.myproject.mymodule.MyFinderObject.fetchDestinationSettings
com.myproject.mymodule.MyFinderObject.compareCurrentSettings
com.myproject.mymodule.MyFinderObject.compareSettings
sun.reflect.NativeMethodAccessorImpl.invoke0
sun.reflect.NativeMethodAccessorImpl.invoke
sun.reflect.DelegatingMethodAccessorImpl.invoke
java.lang.reflect.Method.invoke
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
com.myproject.caching.CachingInterceptor.invoke
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
org.springframework.aop.framework.JdkDynamicAopProxy.invoke
$Proxy43.doSthWith
com.myproject.mymodule.MyFinderObjectTest.testSettingComparisonForCurrentSettings
sun.reflect.NativeMethodAccessorImpl.invoke0
sun.reflect.NativeMethodAccessorImpl.invoke
sun.reflect.DelegatingMethodAccessorImpl.invoke
java.lang.reflect.Method.invoke
com.myproject.mymodule.MyFinderObjectTest
com.myproject.mymodule.MyFinderObjectTest
com.myproject.mymodule.MyFinderObjectTest
junit.framework.TestResult$1.protect
junit.framework.TestResult.runProtected
junit.framework.TestResult.run
com.myproject.mymodule.MyFinderObjectTest
junit.framework.TestSuite.runTest
junit.framework.TestSuite.run
org.junit.internal.runners.JUnit38ClassRunner.run
org.eclipse.jdt.internal.junit4.runner.JUnit4TestMethodReference
org.eclipse.jdt.internal.junit.runner.TestExecution.run
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
Run Code Online (Sandbox Code Playgroud)
kri*_*aex 12
准备:您可以使用此处所述的步骤过滤器.然后,无论何时通过代码进行步骤调试,它都不会跳转到排除的包或类中,例如从JDK或某些框架(如Hibernate或Spring).但这只是一个先决条件.
解决方案:堆栈跟踪仍包含那些包的帧.为了过滤掉这些,您需要修补Eclipse JDT Debug UI插件.其他人已经为旧版Eclipse发布了Indigo.因为我很好奇我是否可以在当前版本的Luna 4.4.1中运行它,我重新创建了另一个人的更改并将Debug View + Stack Filter插件推送到GitHub,包括修补插件的下载链接.因此,如果您也使用4.4.1,那么您很幸运,不需要自己修补和编译任何内容.只需使用我的版本.否则请克隆我的仓库并查看更改,然后将它们应用到您选择的插件版本.
归档时间: |
|
查看次数: |
4953 次 |
最近记录: |