Hello out there,
I want to execute a external debugger with the following code. I use IO.Execute to start the debugger. The command line is assembled in the variable executing.
The call of the program works fine, but as soon as I close the debugger GUI, an Error in CB occurs:
can't open file '' (error 3: ... )
Can anyone help me?
Thank you!
Sven
function OnMenuClicked(index)
{
if (index == 0)
{
local activetarget = GetProjectManager().GetActiveProject().GetActiveBuildTarget();
if (!IsNull(activetarget))
{
local outputfile = GetProjectManager().GetActiveProject().GetBuildTarget(activetarget).GetOutputFilename();
local basepath = GetProjectManager().GetActiveProject().GetBasePath();
local executing = _T("tricore-insight ") + basepath + outputfile;
IO.Execute(executing);
}
else
{
::ShowMessage(_T("No project opened"));
}
}
}