Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are IDEA run/debug configuration *defaults* stored?

It's easy to share run configurations instances in IDEA - simply instantiate a configuration and check "Share": Run/Debug Configurations dialog

I'm already version controlling the resulting files in .idea/runConfigurations (in the relevant project) and part of ~/.IntelliJIdea* (for puppetising desktops). However, I can't find where IDEA stores the configuration defaults - it doesn't seem to be in either of these places. They must obviously be persisting it somewhere, because it works across restarts. The official documentation is unusually unhelpful in this case:

This check box is not available when editing the run/debug configuration defaults.

The particular use case is that I'd like all future "Behave" configurations to have the environment variable DISPLAY set to :1 to run browser tests in VNC rather than in the foreground.

like image 866
l0b0 Avatar asked Apr 20 '16 15:04

l0b0


People also ask

Where does idea store run configurations?

By default, it is disabled, and IntelliJ IDEA stores run configuration settings in . idea/workspace. xml.

Where does IntelliJ store run debug configurations?

run/debug configurations for a project are stored in the . idea/workspace. xml file inside the project location. You can see those entries under the <component name="RunManager" node if you search for "RunManager" in that file.

Where is run debug configuration?

From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . In the left-hand pane of the run/debug configuration dialog, click Edit configuration templates…. In the Run/Debug Configuration Templates dialog that opens, select a configuration type.

How do I open the run debug configuration in IntelliJ?

Open the Run/Debug Configuration dialog in one of the following ways: Select Run | Edit Configurations from the main menu. With the Navigation bar visible (View | Appearance | Navigation Bar), choose Edit Configurations from the run/debug configuration selector. Press Alt+Shift+F10 and then press 0 .


1 Answers

  1. Defaults (the ones that you configure under Defaults node from your screenshot) are per-project .. and therefore stored together with other non-shared configs in .idea/workspace.xml (which is not supposed to be stored under VCS as it contains developer/computer specific settings).

  2. You can find such entries in the aforementioned file under <component name="RunManager" node. Default entries will have default="true" attribute.

  3. There is no defaults of defaults for run/debug configs that you can edit/provision (configs that would be applied to any new projects). They are not stored in separate config file(s) on IDE level but initiated directly from plugin code .

like image 170
LazyOne Avatar answered Oct 01 '22 16:10

LazyOne