Re: debug compiled function
- To: mathgroup at smc.vnet.net
- Subject: [mg39741] Re: debug compiled function
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 5 Mar 2003 00:04:50 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <b41cic$pfu$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, compiled code can't debugged because there is no actual documentation about the machine instruction set of the compiler. You can try an ordinary Mathematica debugger from http://library.wolfram.com/database/MathSource/826/ Typical this error comes form a symbol or a high precision number that is used as an argument. The good old Print[] function is a fine tool to find the error. Regards Jens Brent Pedersen wrote: > > with certain parameters entered into my compiled function i get: > > CompiledFunction::cfn: Numerical error encountered at instruction 59; > proceeding with uncompiled evaluation > > how can i most easily find what is instruction 59? > i would guess there is something i need to wrap in Evaluate[] but can't > tell what as this is a long function.