Hey Boying
Yes, you can easily debug Nifi and Kylo processors.
The first thing is to start Nifi in debug mode and then you can attach a debugger to Nifi process. If you want to debug Kylo processors then you need to attach to Nifi from an IDE where Kylo source code is available. Here is a good doc on how to connect to Nifi from IntelliJ, you just need to do it from IDE which has Kylo source code:
https://community.hortonworks.com/articles/106931/nifi-debugging-tutorial.htmlOne other thing to look out for is that you will need to open required debugging port, i.e. if you are running Nifi on remote host or inside a VM or a docker container and connecting to that Nifi process make sure to open/forward the debug port.