Skip to content

Debug launch configuration Main > C/C++ Application field uses non portable backslash on Windows #208

Open
@TommyMurphyTM1234

Description

@TommyMurphyTM1234

See discussion of this issue towards the end of this issue #207

On Windows a debug launch configuration created when there is a project selected in the Project Explorer will try to automatically fill out the Main > C/C++ Application field with a reference to the executable to be debugged (or the user can browse/search the project to select one if necessary).
On Windows a backslash is used - e.g. Debug\myproject.elf.
On Linux/non Windows a forward slash is used - e.g. Debug/myproject.elf.
The backslash will not work on non Windows platforms.
The forward slash is portable across Windows and Linux/non Windows platforms.
As such it would be better if a forward slash was used for portability.
Otherwise the Windows user must manually edit the field to change backslash to forward slash if the debug launch configuration is to be portable to non Windows OSs.

As explained in #207 by Liviu this behaviour comes not from the GNU MCU Eclipse plugins but from CDT itself - and a deprecated class at that (TabMain).
It would be good to identify a fix/mod that would allow forward slashes to be used as standard regardless of the host OS.
At the moment I cannot propose a solution.

(I don't know if there are any other contexts/fields in which this might also be desirable?).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions