3 ms·
A few examples off the top of my head: 1. Instrument the code in one way or another. At the simplest level, many debuggers can log each function call. 2. Cha
by aidenn0 8y ago
A few examples off the top of my head:
1. Instrument the code in one way or another. At the simplest level, many debuggers can log each function call.
2. Change the definition of functions while the system is running. Most highly dynamic languages will let you do this. I'm told that there are C IDEs that can do this too though (modulo inlining anyways).
3. Change the timing characteristics of the program; if a race condition is suspected, ordering can be forced through the use of thread-local breakpoints, for example.
4. Inject specific data. Have a function called under normal operating conditions and modify some or all of its parameters. Think instant unit-test, but no need to mock anything.