debug subprocess spagedi wrapper