• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse debugger

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't touch me. And dont' touch this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic