You do not need to make changes to the source code to debug the program. However, it is recommended to make the following items part of your source code:
Add an initial stall point, if you cannot stop the process easily from within the debugger.
Add several assertions throughout the source code to help locate errors early.