Sharing Debug Configuration with Eclipse
Join the DZone community and get the full member experience.
Join For Freemaybe you had this problem too: you shared a project with somebody, only to realize that your carefully crafted debug configuration was not shared?
eclipse has the co ncept to store settings in the ‘framework’. the ‘framework’ is the eclipse internal data, basically what is inside the .metadata folder of the workspace.
if i create a debug configuration for a project, then by default eclipse stores it in the ‘framework’ (workspace data). this means that the debug configuration is *not* stored in the project settings: if i zip that project or share it with a version control system, then the debug configuration is *not* shared. in order to share the debug configuration, it needs to be stored in a physical file.
sharing debug configuration file
for this, i need to enable ‘shared file’ in the ‘common’ tab of the debug configuration:
if i have multiple debug connections for my project, then the settings for each are stored in a separate .launch file:
if now i share the project, and that project gets opened with the .launch files, then the debug configurations will show up.
summary
to share debug (or launch) configurations with my project, then i need to enable ‘shared file’ in the configuration: that way the configuration gets stored in a file inside the project.
happy sharing
Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Operator Overloading in Java
-
Revolutionizing Algorithmic Trading: The Power of Reinforcement Learning
-
SRE vs. DevOps
-
Reactive Programming
Comments