The debugger supports external routines running in secure or protected mode. It does not support unprotected mode. UDFs meant to run in unprotected mode should be debugged only by running them in secure or protected mode. After they are working properly then alter them to run in unprotected mode.