Placing a Breakpoint at String.Replace / Placing a Breakpoint at IL commands
Hi All, 1. My goal is to be notified (and execute some code using it's return value - the modified string)when a call to String.Replace is being made. I know that this is an extren method (also defined as MethodImplOptions.InternalCall), and I know that i cant place a breakpoint in a safe way using mdbg framework in a native code. Nevertheless, I need to achieve my goal, hence I need your help - can you help me think of a creative way in which i'll be able to do that? 2. A possible solution (not an efficient one) is to place a breakpointat an IL instruction such as "call" and to continue from there, is there a way to place a breakpoint at an IL instruction?