Kernel debugger + UEFI + Secure boot

Hi,

Is it possible to attach WinDbg to a Windows 10 computer with UEFI and Secure Boot enabled?

Every time I enable the Secure Boot, the /DEBUG flag of the loader configuration is removed.

Reason is I’m getting STATUS_INVALID_PAGE_PROTECTION when I try to load my driver and I cannot remove /INTEGRITYCHECK linker flag because I need it in order to call to ObRegisterCallbacks.

HLK says all tests related to Hypervisor Code Integrity Readiness passes so no hint there.

Regards,
Mauro.