• 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

IntelliJ IDEA 2.5.2

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Intelli J now.
Any one who know:
1) how to step thru for debugging?
2) auto indent.
coz I can't search in the help topics
Thanks!
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've never used the debugger, as I've relied on unit tests since before I was using IDEA.
To set indent, go to Tools | IDE Options. In the dialog that opens, click on Indent and Braces under the Code Style tree node. There you can set your indent options and watch as IDEA shows you how they affect the code in the right side of the dialog.
Craig
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
to step through debugging -->
1st - make sure your code was compiled with the -g command -- to turn on all debugging information.
2nd - put a couple breakpoints in your code (click to the left of a line of code -- this will put a red ball -- a breakpoint)
3rd - click the "bug" icon to start the debugger, click Debug
--> When the debugger comes to that line of code it should stop, you can use the "Step Over" "Step In" and "Step Out" buttons to control where your debugger goes next.
Just play around with it... you'll get it.
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks!
Actually I am using AnyJ 3.5 more often
I just can't find a way to step through it.
how can I compile with -g?
Is that through the IDE? Thanks!
Bryan
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the commandline you simply run the compiler like you normally would, but with a "-g" in the front, like this:
javac -g com\jess\something.java
(you can run javac -h to find out other options)
Inside IntelliJ IDEA or whatever IDE you're using, there should be an option in the compiler setup section to turn on debugging or not.
...... so "Jackie" why do you sign your post as "Bryan"?
[ May 19, 2002: Message edited by: Jessica Sant ]
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
whoops, in the AnyJ, what i need to do is just "click" the compile button without worry about the -g. So you mean I should explicitly modify the compiler?
In the compiler setting, there's one row "additional commandline"
but doesn't work when i put the line there
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.theserverside.com/home/thread.jsp?thread_id=13567
Check out how us IDEA advocates hijack any IDE thread. hehe
 
I brought this back from the farm where they grow the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic