• 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

debug options while running from command line

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
..i am just beginning java and i am currently working from a text file and command line to compile and run.....
my question is whether there is a way using this method (as opposed to an IDE which i will do later) to show my
program variables in the command window while i am executing i guess in other words is there some sort of debug option or
is that strictly why there are IDES ???

thanks
 
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

bob szypula wrote:..my question is whether there is a way using this method (as opposed to an IDE which i will do later) to show my
program variables in the command window while i am executing
thanks



i use System.out.println() to watch program variable if i am running from command line
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a tool included in the JDK called jdb. It's a debugger that works on the command line. It's much more primitive than debuggers that are built-in into IDEs, and I don't think many people are seriously using jdb to debug their code. It could be handy though, if you need to test something for example on a server where you have no graphical user environment.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For something more powerful than jdb, there's the very capable JSwat debugger.
 
bob szypula
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for those suggestions!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic