• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse debugger

 
felix thomas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've got a special forum for Eclipse and other IDEs here. I'll move this thread over there for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic