File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes query on the flags required for debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "query on the flags required for debugging" Watch "query on the flags required for debugging" New topic
Author

query on the flags required for debugging

Dilshad Marikar
Ranch Hand

Joined: Sep 08, 2004
Posts: 32
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
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31085
    
163

Dilshad,
What IDE is this for? Eclipse? NetBeans? IDEA?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dilshad Marikar
Ranch Hand

Joined: Sep 08, 2004
Posts: 32
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
Marshal

Joined: May 26, 2003
Posts: 31085
    
163

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

Joined: Sep 08, 2004
Posts: 32
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16308
    
  22



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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query on the flags required for debugging