Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

query on the flags required for debugging

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I'd like to know the meaning of the vm parameters and system parameters needed for remote debugging.

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555

what is the meaning of the -Xnoagent vm param and the system param -Djava.compiler=NONE? What do they do? Can I get away with not using them?

Thanks

Dilshad
 
author & internet detective
Posts: 41855
904
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dilshad,
What IDE is this for? Eclipse? NetBeans? IDEA?
 
Dilshad Marikar
Ranch Hand
Posts: 32
  • 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 and something called cqjd. But the flags in question are pretty such general to all enviromnents are they not?

Regards
Dilshad
 
Jeanne Boyarsky
author & internet detective
Posts: 41855
904
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dilshad,
Some tools have different flags. I don't recall either of those being required for Eclipse though. See this article for more details.
 
Dilshad Marikar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the article Jeanne. Interesting to note that the vm parameters to enable remote debugging may vary with the vendor. Calling "java -x" from the command line appears to show the supported vm params.
 
Saloon Keeper
Posts: 27698
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I lifted this from http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jdb.html which is a discussion of sun's command-line java debugger.

One of the really cool things about the Sun JVM is its support for remote debugging and resource monitoring and the fact that they provided info on how to write your clients such as the Eclipse and Intellij IDE debugging systems.

I don't know how portable that stuff is as a whole. Anything that starts with an "-X" is vendor-dependent, and "-D" items just define properties to the runtime environment which may use those properties any way it likes.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic