• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Sheriff
Posts: 37255
519
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
Boost this thread!