Added a debug target
Merge pull request #3014 from LaurentGoderre/add-debug-target

Added a debug target - Thank you @LaurentGoderre, this will be very useful