Topic
1 reply Latest Post - ‏2005-07-29T16:38:37Z by SystemAdmin
SystemAdmin
SystemAdmin
1479 Posts
ACCEPTED ANSWER

Pinned topic In WSAD How Can we Debug a thread Class

‏2005-07-29T08:04:41Z |
I am try to debug a class that implements Runnable interface . but After the point of start(). Debuger pointer is not entering in the run().
I.E Class Test implements Runnable{

public void run(){
....
}

public void main(String arg[]){
Thread t = new Thread(new Test());
t.start();---F5 cause pointer is not entering in run()?????
t.join();
}

with regards

Siddharth Singh(singhsiddh@yahoo.com)
Updated on 2005-07-29T16:38:37Z at 2005-07-29T16:38:37Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1479 Posts
    ACCEPTED ANSWER

    Re: In WSAD How Can we Debug a thread Class

    ‏2005-07-29T16:38:37Z  in response to SystemAdmin
    aryan_anant@yahoo.com wrote:
    > I am try to debug a class that implements Runnable interface . but After the point of start(). Debuger pointer is not entering in the run().
    > I.E Class Test implements Runnable{

    That's because it's a new thread, not the thread you're currently
    debugging. The easiest way is to put a breakpoint in the run() method as
    well.

    Andrew Jr.

    ======================================================================
    IBM Phoenix Labs (OTI)
    2929 North Central Avenue
    Phoenix, Arizona, USA 85012