• 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

How to debug a program?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I am new to java, what is the best texteditor for java that has the feature to debug the program.
I find it easy to understand new programming language by debuging the program you create.

I am useing JCreator, please
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't think of a text editor which incorporates a debugger, I am afraid.
You will have to do it the old-fashioned way. Put lots of print statements in your code, so you can follow the execution flow.
 
Campbell Ritchie
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to JavaRanch
I think this thread might be moved to the beginners' forum later.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A text editor can't, but an IDE like Eclipse or Netbeans can I think. Therefore, I think that's the best location for this thread.

Campbell Ritchie wrote:And welcome to JavaRanch
I think this thread might be moved to the beginners' forum later.


Close, but yet so far away. 25 forums, to be exact
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Prime wrote:A text editor can't, but an IDE like Eclipse or Netbeans can I think.



There is always jdb, the command line debugger for java. It is somewhat primitive, but if you are using a text editor for your code, you might want primitive.
reply
    Bookmark Topic Watch Topic
  • New Topic