VC中嵌入断点中断的HelloWorld程序:

#include <iostream>

int main(INT argc,char*argv[])

{

     __asm INT 3; //调用断点中断

   cout << "Hello world!" << endl;

}

<编译后程序将停在INT3这个位置>

汇编中嵌入断点中断的HelloWorld程序

这个示例和那个单步中断先待定