A method, an apparatus, and a computer program product for inserting one or more
global breakpoints for debugging computer software. A method, an apparatus, and
a computer program product for removing one or more global breakpoints for debugging
computer software. The inserting method includes the steps of: inserting a global
breakpoint in a page containing software code if the page is present in memory;
reading the page into memory if not present in memory, and inserting a global breakpoint
in the page immediately after being read into memory; and detecting a private copy
of the page if present, and inserting a global breakpoint in the private copy.