Bug 497830 - [launch] Debug launch does not expand variable
Summary: [launch] Debug launch does not expand variable
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 9.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-13 07:54 EDT by Frank Benoit CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Benoit CLA 2016-07-13 07:54:42 EDT
I try to launch debugging with a variable for the .exe:
${config_name:org.chabu.utest}/org.chabu.utest.exe

So that it the launch dialog with choose either the Debug/org.chabu.utest.exe or Release/org.chabu.utest.exe, depending on what is my current build configuration.

For normal launch this works for Debug and Release.

Now, when launching the Debug with the debugger, then i get a "Problem Occurred" dialog with this message:

  Error in final launch sequence
  Failed to execute MI command:
    -file-exec-and-symbols ${config_name:org.chabu.utest}/org.chabu.utest.exe
  Error message from debugger back end:
  ${config_name:org.chabu.utest}/org.chabu.utest.exe: No such file or directory.
  ${config_name:org.chabu.utest}/org.chabu.utest.exe: No such file or directory.
Comment 1 Marc Khouzam CLA 2016-10-07 14:43:30 EDT
I think we need to call 
  VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution()

in DebugNewProcessSequence#stepSetExecutable()