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.
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.
Joined: Jun 10, 2001
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