Difference between temporary and permant run/debug configution

已回答

The help page about run/debug configurations (https://www.jetbrains.com/help/idea/creating-and-saving-temporary-run-debug-configurations.html) says the following:

Temporary run/debug configuration is added to the list of available configurations and works same way as the permanent run/debug configuration. You can change its settings using the Run/Debug Configuration dialog and optionally save it as permanent.

Does that mean they're exactly the same thing except for the icon? If so what is the point of making a distinction?

0

Hello,

Temporary run/debug configuration is being generated automatically once you right-click code in the editor and select Run <name> or Debug <name>. This configuration is used for running an exact class without editing configuration settings. There is no separate icon for a temporary run/debug configuration in the navigation bar toolbar, and this option exists only in the context menu, or available by separate shortcut. 

0

I know how to get one, they're created all the time when running the current file, running a gradle task or running a specific unit test for example. With the different icon I mean that the temporary run configurations get a partially transparent icon.

My question is, if I press the "Save Configuration" button, what happens? Is there any difference in behavior or is it only the icon that changes?

0

Temporary configurations are marked with semi-transparent icons and are managed the same way as the permanent configurations.
By default, 5 temporary configurations are allowed per project and the amount of permanent configurations is unlimited. So, once you save a temporary configuration, it becomes a permanent one and it will not be erased in the future. 

0

I see, thank you for your quick replies!

0

Konstantin Annikov Couldn't it be made more clear in the dialog? As soon as you are told, it's an "Of course!" moment, but until then, it's clear as mud. I though a file was missing, or the configuration invalid, or something like that.

A "This is a temporary configuration. Save it to make it permanent" label somewhere inside the configuration would have made it instantly understandable.

0

Thank you for your feedback! Feel free to upvote on the related issue in YouTrack - https://youtrack.jetbrains.com/issue/IDEA-245908 .

0

请先登录再写评论。