Add method to debug prepared kernel