Is there any way to comment/uncomment the VM arguments in eclipse?

Viewed 1208

Run Configuration from Eclipse

For example, Here I just want to comment this whenever I do not need this argument. I don't want to erase this. So, Is there any way to comment/uncomment the VM arguments in eclipse?

1 Answers

I do not believe there is a way to do that.

However, for -D options you could use the following work-around:

change -Dlog4j.debug=true to -DXXlog4j.debug=true or similar

A system property whose name is not recognized by anything should simply be ignored.

(Hypothetically, an application could iterate all of the properties and do something with them all ... beyond simply printing / displaying them. But that is pretty contrived / perverse.)

Unfortunately this approach won't work for other options. In general, unrecognized JVM command line options will cause errors.

Related