matt
matt

Reputation: 125

eclipse run/debug launch configs in ws/.../.launch do not show up in config dialog

regardless of importing them via file/import or just copy them from an old workspace to a new one (.metadata/.plugins/org.eclipse.debug.core/.launches) they didn't appear in the eclipse run/debug configurations dialog.

(however if i try to import them after i copied them already to that folder, i'm asked to override them - so that directory seems to be the correct one...)

my question is: how do i (re)import elder run/debug configurations to a new eclipse workspace?

update this doesn't work out form me with versions 1903, 1909 and 1912

Upvotes: 0

Views: 326

Answers (2)

matt
matt

Reputation: 125

thx @howlger for the approach - it was my fault and a silly mistake. (i put this in here for the next luser like me XD)

  • the problem was, that the ones (the configs) I've missed did't show up, because the projects for this configs were not open in my new workspace. thats all.

when opening them, the configs will be listed in the overview.

Upvotes: 0

howlger
howlger

Reputation: 34137

Do one of the following:

  • Export and import the launch configurations:
    1. In the old workspace do File > Export...: Run/Debug > Launch Configurations
    2. In the new workspace do File > Import...: Run/Debug > Launch Configurations
  • Share launch configurations:
    1. In the old workspace in Run > Run Configurations... in the Common tab of all launch configurations to share select for Save as the option Shared file
    2. Copy the <name>.launch file into a project of the new workspace

Please be aware that the files in .metadata are not intended to be edited or deleted.

Upvotes: 2

Related Questions