aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse debugger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse debugger" Watch "Eclipse debugger" New topic
Author

Eclipse debugger

felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
hi,

I am using Eclipse 3.0 version , i have a problem that is I have a swing based application which uses threads. Now I don't which part of the code is being executed currently in which thread nor I have any idea which code is being used. Is there any way I can find out using debugger that a specific code is being executed.

I tried using breakpoints but when the threads are instantied the debugger console shows the nameof threads running not the code.

Can anuyone help.

Michal Bienek
Greenhorn

Joined: Jun 17, 2002
Posts: 29
You're on the right track. The breakpoints are the right things to use, and yes they will show the thread in the Debug perspective. However, you should also be able to see any variables set at the breakpoint in the Variables view, the breakpoints in the Breakpoint view, and the source code in the Source view. In case your settings got buggered up, go to Windows/Reset Perspective, and all the right views (including source) should show up as part of the Debug Perspective.
This is all assuming that when the breakpoint is traversed, your threads actually pause. If this is not happening, then the code path you have set your breakpoint on isn't being traversed.
felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
thankx Michael ,


but is there any other way i can find out which part of code is runing at specific time without beakpoints

I can only put breakpoints where i know the code will be executed , if I do not know which code will be executed then How do i put the beakpoints

Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

We've got a special forum for Eclipse and other IDEs here. I'll move this thread over there for you.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse debugger