Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
John-Philippe Verger
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic