[Rd] To use breaktodebugger(), which file should I include in C code?

Duncan Murdoch murdoch at stats.uwo.ca
Wed Apr 25 12:44:59 CEST 2007


On 4/25/2007 3:47 AM, Tong Wang wrote:
> Hi, 
>     I have tried several headers in RHOME/include , but none of them seemed to work . 
> 
> Thanks for your help.

It's not part of the API, so you can't call it from package code.

But the implementation is very simple in Windows:

void breaktodebugger()
{
     asm("int $3");
}

so you could easily write your own.  I don't know the equivalent for 
other platforms.

Duncan Murdoch



More information about the R-devel mailing list