comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: debugging a c-code called by CALL_EXTERNAL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: debugging a c-code called by CALL_EXTERNAL [message #70092] Fri, 12 March 2010 04:46 Go to next message
simona bellavista is currently offline  simona bellavista
Messages: 56
Registered: December 2009
Member
Thanks, this can be really useful.

On Mar 12, 1:17 pm, Wox <s...@nomail.com> wrote:
> On Fri, 12 Mar 2010 03:51:01 -0800 (PST), simona bellavista
>
> <afy...@gmail.com> wrote:
>> The question is : how do I debug a c-code from idl?
>
> You just have to attach whatever debugger you're using to
> idl_opserver, set a breakpoint somewhere in the c-code and
> call_external your dll.
>
> For example in Visual C++, under "Tools" you find "Attach to
> process..."
Re: debugging a c-code called by CALL_EXTERNAL [message #70093 is a reply to message #70092] Fri, 12 March 2010 04:17 Go to previous messageGo to next message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Fri, 12 Mar 2010 03:51:01 -0800 (PST), simona bellavista
<afylot@gmail.com> wrote:

> The question is : how do I debug a c-code from idl?

You just have to attach whatever debugger you're using to
idl_opserver, set a breakpoint somewhere in the c-code and
call_external your dll.

For example in Visual C++, under "Tools" you find "Attach to
process..."
Re: debugging a c-code called by CALL_EXTERNAL [message #70203 is a reply to message #70092] Fri, 19 March 2010 12:44 Go to previous message
Chris[6] is currently offline  Chris[6]
Messages: 84
Registered: July 2008
Member
On Mar 12, 2:46 am, simona bellavista <afy...@gmail.com> wrote:
> Thanks, this can be really useful.
>
> On Mar 12, 1:17 pm, Wox <s...@nomail.com> wrote:
>
>> On Fri, 12 Mar 2010 03:51:01 -0800 (PST), simona bellavista
>
>> <afy...@gmail.com> wrote:
>>> The question is : how do I debug a c-code from idl?
>
>> You just have to attach whatever debugger you're using to
>> idl_opserver, set a breakpoint somewhere in the c-code and
>> call_external your dll.
>
>> For example in Visual C++, under "Tools" you find "Attach to
>> process..."
>
>

I've used printf for debugging purposes, despite warnings in the
documentation. It's probably not very stable but, if it works on your
machine and it's temporary, then why not?

chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading in data quickly
Next Topic: How to add a title to a multi plot page

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 07:52:32 PDT 2025

Total time taken to generate the page: 0.64184 seconds