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:
An initial stall point, if you cannot stop the process easily from within the debugger.
Assertions sprinkled liberally through the sources to help locate errors early.