swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Java swarm help with Log File


From: Marcus G. Daniels
Subject: Re: [Swarm-Support] Java swarm help with Log File
Date: Mon, 07 Nov 2005 20:16:21 -0700
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

durga bhavani wrote:

When I am trying to run my program it is terminating and giving me a log file

Sorry, there's not enough information in the log file to say. One thing to do is to call System.out.println in places you expect to be called in order to follow the execution of the simulation. As you add more, you'll eventually bound the conditions of the failure to the point you can see the failing code. Chances are it will be some uninitialized target object, a bad method name, or the like. Using a Java debugger, or even gdb (a native code debugger) is another way to control the program's execution, but following either can be confusing as the simulator is issuing your methods via native calls. Compiling java code is quick, so it isn't that cumbersome just to keep changing instrumentation and iterating until you find the information you need.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]