Programmatically set breakpoint in C++ code

Thanks for the pointers!