开发者

eclipse where is args[] stored?

开发者 https://www.devze.com 2023-01-27 18:12 出处:网络
i would like to know where does eclipse save entered args?(in which file?) because these args that i entered -say- a month ago 开发者_Go百科are remembered.

i would like to know where does eclipse save entered args?(in which file?) because these args that i entered -say- a month ago 开发者_Go百科are remembered.

see snapshot:

eclipse where is args[] stored?


i'd suggest to save the launch config to a shared file in your project folder. you will find this option in the commons tab in your screenshot.

if you open it with a text-editor you will find following two tags

<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="YOUR PROGRAM ARGUMENTS"/> <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="YOUR VM ARGUMENTS"/>

i also share my projects launch config in the company's scm.


Search in the .metadata/plugins folder. If you don't know, the .metadata folder is inside whatever folder you use as you workspace, and may be hidden. Note that the "Launch Configuration" you're looking at there is saved as a convenience, and you can have multiple configurations.


In your workspace's (not each project's) directory there is .metadata/.plugins/org.eclipse.debug.core/.launches with an XML file for every launch configuration, and in there something like

<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
   value="123456789"/>

You should not need to go to the file, though, you can see and edit all this in the "Run > Run Configurations" dialog (the one in your screenshot).

0

精彩评论

暂无评论...
验证码 换一张
取 消