Skip to content

add_debuggable_node drops debug-only arguments and mutates caller lists #4016

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

add_debuggable_node drops extra_debug_args if no base arguments are supplied, and mutates the caller's arguments list when base arguments are supplied.

Reproduction

Call add_debuggable_node(ld, package="example", executable="example", extra_debug_args=["--debug"]) without arguments. The standard MoveGroup launch generator uses this pattern.

Expected behavior

The debug node receives --debug independently of any normal arguments, and caller-owned lists remain unchanged.

Actual behavior

The debug node receives no arguments. When a base list is provided, debug-only arguments are appended to that list in place.

Environment

Reproduced on main (5399d29) with Python tests capturing the Node constructor arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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