English 中文(简体)
How do debug in Eclipse when an object is invoked?
原标题:

I have just started with java development using Eclipse, when I was debugging this part:

object.methodInAnotherClass(parameters);

The debugger stopped, I understand this won t skip to another class and start debugging that, but what is the other way I can debug my another class?

The same problem is also in CORBA.

So, what is the best way to debug in such cases? By printing the o/p and checking it?

Update:

Q1: How to debug in eclipse when an object is used to invoke a method in some other class? (step into works if a method is called in the same class, so I don t think that s a solution.)

Q2. What is the best way to debug code in a distributed environment like CORBA.

最佳回答
  1. Put a breakpoint
  2. Start your server/application in debug mode (these 2 points you have already figured out)
  3. You must have the source classes you want to debug. Dynamically generated code is hard to debug

For CORBA specifically, there seem to exist two plugins ORBStudio and EclipseCorba. You could give them a try.

问题回答

There should be the "step into" arrow in the debug bar, or the as well as "step over" to jump over one instruction.

I don t know if it was your question since you are also speaking about Corba, maybe you want to know about debugging with Corba.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签