Many times this is caused by the code not really being there.
Make sure you code is not being deleted by the compiler as "dead" code. You can change the options, but I believe by default, any code that has no way of actually being run, will be removed.
Make sure it's not a piece of code that has no way of being entered during flow of your program.