CDAP comes with a number of tools to make a developer's life easier. These tools help with testing and debugging CDAP applications:
Testing a CDAP Application: Strategies and approaches for testing CDAP applications, including testing MapReduce and Spark programs and artifacts.
Test Framework: How to take advantage of the test framework and the in-memory CDAP mode to test your CDAP applications before deploying. This makes catching bugs easy and helps you catch them earlier.
Debugging: How to debug CDAP applications in CDAP Sandbox mode and application containers in Distributed CDAP mode.
Debugging the Transactions Manager: Covers snapshotting and inspecting the state of the Transaction Manager.
Troubleshooting: Tips and hints for solving problems during development.