ESP32 Debugging doesn't start on platformio

if put this extra line in command.py, when I click the button I can get it to spawn a GDB console, but its in the terminal, and its not connected up to the debug console output

interface = "gdb"
if not interface:
    return helpers.predebug_project(ctx, project_dir, env_name, False, verbose)