Debug blender with renderdoc

Does anyone know how to run a debug version of blender under renderdoc so that we can debug the shaders? Currently, capturing with renderdoc is not allowing me to open new windows, and it crashes immediately.