You are here: TWiki > Quantlib Web > DebuggingTips r1 - 18 Jan 2005 - 05:02 - TWikiGuest


Start of topic | Skip to actions
Some debugging tips

  • put trace statements on everything - When doing highly numerical code, using a debugger to single step usually doesn't work as well as trace statements
  • turn off as much functionality as possible - Set all of the variables you can so 0.0. Remove function calls. Try to get the minimum number of things necessary to reproduce the bug
  • think about what does work
  • it's probably not something complicated
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
Copyright ©2001-2008 by the contributors of Quantlib. Content released under the Modified BSD License.