Results 1 to 10 of 10

Thread: Stepping through code (IDE Q)

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Resolved Stepping through code (IDE Q)

    Hi,

    I'm getting on cool with learning Java (only started a week ago) and so far only used notepad and the command prompt to compile.
    (yes..still at command line apps, taking my time, trying to learn things properly.....System Error suggested that, and I agree).

    Installed NetBeans and JCreator on my machine, but for later. OK..used JCreator a bit, but never got it to work..nevermind that...looks like just a fancy text editor, numbering your lines and do syntax hightlighting

    Just want to know when on start using NetBeans, can one step through your code, line by line, checking variable values as with visual studio (vb.net)?

    Know you will say,check for yourself, but it's installed on my home machine, and busy on a notebook at my friends work. So either no, and I stay here, having a free dinner (still no job .. lol) or go home, and use Netbeans .

    Cheers

    Stranger
    Last edited by StrangerInBeijing; Apr 6th, 2005 at 09:22 PM. Reason: RESOLVED
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Stepping through code (IDE Q)

    uuuh....anyone?

    Not want to start a debate about what is the best IDE to use, but just trying to figure out the ide that comes closes to MS VS IDE.....expecially for stepping and debugging your code...
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Stepping through code (IDE Q)

    You can set break points by clicking on the "left margin" of the line you want to stop at.

    There is also a Step Into/over and so on command too. I never use it in VS nor NetBeans. But if you go to the Run menu, you can see all the options, and there is also HotKeys for doing this kind of stuff.

    In the lower right corner, you can see what the differnent variables values are, and you can also set watches there as in VB.


    This pictures showes the values of some variables and objects, and I have used 2 break points:
    Attached Images Attached Images  

  4. #4

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Stepping through code (IDE Q)

    That's in .... NetBeans? Cuz look a bit different that JCreator.

    I want to start with NetBeans the week-end (cuz from what I read it sound good). What does "professionals" use, I mean when you work at a company?

    Actually I want to get familiar with a couple of IDE's, but first priority now is learning the syntax without "help"...like intellisense.... hope I'm on the right path though....any advice?
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Stepping through code (IDE Q)

    Ohhh...I read from your reply that you had NetBeans installed. I don't have JCreator installed anymore. I only use NetBeans these days. For me JCreator is just a fancy Notpad version too, with a compile button. As long as it doesn't have intely-sense I won't install it either. So I have no idea if it has a step command at all. But I am think I remember that it had the same break option as NetBeans, but I can't remember since it has been a year or two since I last used it.




    ØØ

  6. #6

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Stepping through code (IDE Q)

    Hi,

    No that's cool, you gave me just the answer I wanted...there is an IDE that you can put in break points, check variable values, etc like VisualStudio, so that's great.

    Yes, Jcreator is a fancy text editor, but I thought it good to move on slowly (plain old Notepad > JCreator > NetBeans (Seems the next good choice) as I really want to get Java under the knee the right way...after 3 years of vb, I still wanted to kick myself for not learning language first.

    Thanx again mate.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Stepping through code (IDE Q)

    No problem. Just ask again if there is any other IDE or anything that we can help with. I am sitting at college now, and we have JCreator here. I can't see any step over and into and so on buttons at all. So I guess it is just NetBeans then.



    ØØ

  8. #8

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Stepping through code (IDE Q)

    Thanx Bra,

    Btw...after I send that reply this morning, I looked at Sun Java site, and see they got some IDE you can download (30 days for free...me aint' paying for sh$t). Ever used that?

    Still would like to know...what does pro's use?

    Cheers!

    Stranger
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Stepping through code (IDE Q)

    Quote Originally Posted by StrangerInBeijing
    Thanx Bra,

    Btw...after I send that reply this morning, I looked at Sun Java site, and see they got some IDE you can download (30 days for free...me aint' paying for sh$t). Ever used that?

    Do you have a link for that one? NetBeans is suns open projects IDE AFAIK. It does much more then you need, so if there is an other one you can pay for there, then I think it will be more then too much over head for any new persons to use. But I havn't tested it though. So I am not sure.

    Quote Originally Posted by StrangerInBeijing
    Still would like to know...what does pro's use?

    Cheers!

    Stranger
    I guess there is no real answer to this, as there is no real answer to this for other languages like C++ either. Even if most users use VC++ there is a lot of alternatives as some of the big games (think it was quake) was actualy compiled on a free compiler. And other game vendours (SP?) is paying $25k just for a compiler that they can all plug into an all ready over prized VS IDE, and still buy expensive profilers and Intely-Sense plug ins as "Green Tomatos" - Visual Assistance or what it was called again.



    ØØ

  10. #10

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Stepping through code (IDE Q)

    check out this http://www.sun.com/download/products.xml?id=3fb913e7

    Dunno if this now is the same one than this morning (tired man) cuz now i see it's a 60 day trial...

    Hope it helps
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width