• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

query on the flags required for debugging  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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: 39285
727
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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: 39285
727
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Bartender
Posts: 20766
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!