• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Basic Eclipse Questions

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been using Eclipse for about a year now but haven't been able to figure out a couple of simple things.
1) Is there a quick way to switch between files using the keyboard? I use VS.NET at work and it's a simple matter of alt-w # to switch between any open file, but I've yet to find a decent way to do this in Eclipse. IMO, I should never have to touch the mouse while programming so this annoys me to no end.
2) Is the debugger supposed to work out of the box? I've never been able to get it to do anything but print an error message.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) Yes, you can use Ctrl-F6 (and Shift-Ctrl-F6 when the small window is open) to switch between open files.
2) I have only used the debugger a few times, but it worked for me. It would probably be easier to help you, if you wrote the errormessage you received.
Regards
Anders
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ctrl+F6 is pretty un-ergonomic, but since 2.1 you can change the keymappings (for just about all actions in the IDE) to whatever suits your fancy.
 
Author
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Brian C Robinson:
Is the debugger supposed to work out of the box?


If you mean the Java debugger, yes, assuming you installed the SDK version of Eclipse and a reasonably recent version of Java then just select your project, then Run > Debug As > Java Application.
If you mean the C debugger, then no. You also have to install gdb and gcc and the whole gnu toolchain.
(Has anybody noticed that after a while the fly just goes in the moose's nose and stays there? )
 
Author
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ed Burnette:

(Has anybody noticed that after a while the fly just goes in the moose's nose and stays there? )


Mmm, I try to avoid looking at him, he's creepy!
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ed Burnette:
(Has anybody noticed that after a while the fly just goes in the moose's nose and stays there? )


Even flies need to take a nap every once in awhile.
 
Brian C Robinson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, it appears the debugger is working. I can run normally with it if I don't set a breakpoint. If I do set a breakpoint, though, it acts weird. The program seems to stop at the breakpoint but I can't step. The menu option to step is still grayed out.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ed Burnette:

If you mean the Java debugger, yes, assuming you installed the SDK version of Eclipse and a reasonably recent version of Java then just select your project, then Run > Debug As > Java Application.


You don't need the SDK version - the JDT runtime binary suffices.
You are right about the JDK, though - some of them do have bugs preventing Eclipses debugger from working correctly. With JDKs 1.4.1_02 and 1.4.2, I don't have any problems.
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic