The GetDebugOptions method of the IRemoteProcessEx interface gives information about the current state of the debugger flags.
HRESULT GetDebugOptions(DWORD *pdwOptions);
[out] *pdwOptions | Pointer to the current state of the debugger flags. |
GetDebugOptions may return MSJDBG_DISABLE_JIT_COMPILED_CODE_DEBUGGING.