Trong khi gỡ lỗi, khung nhìn Debug trong Eclipse hiển thị ngăn xếp cuộc gọi. Điều đó thật tuyệt. Nhưng tôi rất muốn có thể lọc ra tất cả các cuộc gọi mà tôi chắc chắn không quan tâm, chẳng hạn như Spring và JUnit runner.Cách lọc ngăn xếp cuộc gọi trong khung nhìn gỡ rối Eclipse cho Java
Đây là ví dụ về ngăn xếp cuộc gọi của tôi ngay bây giờ. Tôi muốn giữ cho các mục in đậm, trong khi ẩn tất cả các phần còn lại. Có thể làm theo bất kỳ cách nào không? (plugin, bản phát hành, cấu hình Eclipse tiếp theo, ...)
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
Và nhân tiện, bạn có nghĩ rằng điều này sẽ tạo ra một yêu cầu tính năng hợp lý không? – espinchi
Chắc chắn - nó cũng không khó lắm. Đi xung quanh các API gỡ rối. – Ladlestein
@espinchi, tôi sử dụng feaure này trong IntelliJ và nó giúp ích rất nhiều. – DerMike