Skip to content

--auto_run does not start the target program #469

@GlekoMa

Description

@GlekoMa

I noticed that --auto_run adds the target to the list but doesn't actually start it.

Had a quick look at the code — I guess it might be related to these two spots:

//- rjf: auto run
if(auto_run)
{
auto_run = 0;
rd_cmd(RD_CmdKind_LaunchAndRun);
}

// rjf: run -> no active targets, no processes, but we only have one target? -> just launch it, then select it
if((kind == RD_CmdKind_Run ||
kind == RD_CmdKind_StepInto ||
kind == RD_CmdKind_StepOver) && processes.count == 0 && targets.count == 1 && !has_active_targets)
{
rd_cmd(kind == RD_CmdKind_Run ? RD_CmdKind_LaunchAndRun : RD_CmdKind_LaunchAndStepInto, .cfg = targets.first->v->id);
rd_cmd(RD_CmdKind_SelectTarget, .cfg = targets.first->v->id);
break;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions