(1370,1371) extract generic debugger code in separate plugin

we don't want it in 'ide' which has a different load context.