Jason S
Jason S

Reputation: 189686

Where do you put -Dvar=value arguments in Eclipse debug configurations?

Title pretty much says it all. I'm moving to a new computer setup and I have to run an Eclipse configuration with a -Dvar=value argument. I forget where to put this in Eclipse. The debug configuration arguments tab doesn't seem to be the right place.

What are these parameters called and where do I enter them in a debug configuration?

Upvotes: 0

Views: 665

Answers (4)

Xeon
Xeon

Reputation: 5989

This is simple: just follow the "red color"

Down arrow

Arguments

Upvotes: 4

Guillaume Polet
Guillaume Polet

Reputation: 47608

Create a launch configuration, go to the Arguments tab and enter them in the "VM argument" field

Upvotes: 2

AlexR
AlexR

Reputation: 115328

Select from main menu Run/Debug Configurations, then choose your debug configuration or create new. Select tab "Arguments" and add your -D... to "VM arguments" text area.

Upvotes: 1

JB Nizet
JB Nizet

Reputation: 691755

It is the right place. You have to put them inside the VM arguments text area.

Upvotes: 1

Related Questions