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 How can I set command-line arguments in debug mode in Eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How can I set command-line arguments in debug mode in Eclipse?" Watch "How can I set command-line arguments in debug mode in Eclipse?" New topic
Author

How can I set command-line arguments in debug mode in Eclipse?

John-Philippe Verger
Greenhorn

Joined: Feb 18, 2008
Posts: 25
Hi all,

I have written a Java console application, and I use command- line arguments in the main method of my application.I want to debug this application in Eclipse. When I launch my application in debug mode, I want Eclipse to let me set command-line arguments.But I don't know how to do it.Please, how can I set command-line arguments in debug mode in Eclipse?

Thanks you in advance for your answers.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31385
    
184

If you choose "Debug..." it lets you launch with any parameters you want. The top is for "regular" arguments; the bottom if for JVM parameters.


[OCA 8 book] [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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I set command-line arguments in debug mode in Eclipse?