Hi,
Recently I found out it is possible to include partial project files into a Segger Embedded Studio project. I found out his allows me to include a file just specifying some debugger configurations.
E.g:
Display All
IMO this is a great feature allowing to configure custom debug configurations in different environments. As mentioned in the comments, changes to the debugger_config.xml can be ignored by version control systems, allowing custom configurations without constant changes to the project file.
However, I also found that on some occasions Embedded Studio changes the import line to be:
Is there a way to prevent this from happening? Would there be a better approach to achieve the same result?
Even better would be an import feature that only imports a file if it exists, allowing the file to be ignored altogether. This is a lot easier than dealing with ignoring changes.
I'm hoping to release a project that uses this approach. Are there any risks of this "feature" not working in future versions of Embedded Studio?
It would also be great if Embedded Studio could support commenting and uncommenting code blocks in XML files. Currently the commenting feature of ES only uses C style line comments. This would allow quick switching between different debugger settings, e.g J-Links with different serial numbers.
Recently I found out it is possible to include partial project files into a Segger Embedded Studio project. I found out his allows me to include a file just specifying some debugger configurations.
E.g:
XML Source Code: debugger_config.xml
- <!DOCTYPE CrossStudio_Project_File>
- <!--
- Debugger configuration
- Note: only one configuration can be added. If multiple configurations exist only
- the last configuration will be used.
- Run git update-index <hyphen><hyphen>skip-worktree debugger_config.xml
- before changing this file to prevent changes from being committed.
- Refresh the project in Embedded Studio after changing this file to apply changes.
- Examples:
- -->
- <!-- Debug using JLink Server -->
- <!-- <configuration
- Name="Debugger"
- hidden="Yes"
- Connection="IP 127.0.0.1 19022"
- />-->
- <!-- Debug using Jlink connected over USB -->
- <configuration
- Name="Debugger"
- hidden="Yes"
- Connection="USB"
- />
IMO this is a great feature allowing to configure custom debug configurations in different environments. As mentioned in the comments, changes to the debugger_config.xml can be ignored by version control systems, allowing custom configurations without constant changes to the project file.
However, I also found that on some occasions Embedded Studio changes the import line to be:
Even better would be an import feature that only imports a file if it exists, allowing the file to be ignored altogether. This is a lot easier than dealing with ignoring changes.
I'm hoping to release a project that uses this approach. Are there any risks of this "feature" not working in future versions of Embedded Studio?
It would also be great if Embedded Studio could support commenting and uncommenting code blocks in XML files. Currently the commenting feature of ES only uses C style line comments. This would allow quick switching between different debugger settings, e.g J-Links with different serial numbers.