We can use python debugger (PDB) to debug kernels. dppy.kernel can be debugged by changing the dpctl.device_context to CPU.