debug examples added:
1. rising exceptions
2. logger
3. printf style