From murdoch at stats.uwo.ca  Wed Apr 25 12:44:59 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 25 Apr 2007 06:44:59 -0400
Subject: [Rd] To use breaktodebugger(),
 which file should I include in C code?
In-Reply-To: <d9429a3a6def.462ea511@usc.edu>
References: <d9429a3a6def.462ea511@usc.edu>
Message-ID: <462F312B.8090107@stats.uwo.ca>

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



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