Re: Finding the line that caused an error
- To: mathgroup at smc.vnet.net
- Subject: [mg88503] Re: [mg88425] Finding the line that caused an error
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Tue, 6 May 2008 06:46:28 -0400 (EDT)
- References: <200805051012.GAA08298@smc.vnet.net>
On May 5, 2008, at 6:12 AM, vj8usa wrote: > Is there any way to display the specific line of code that caused > an error in Mathematica? > I'm used to working with C++ compilers that give you a line number > along with each error message, and I'm starting to get frustrated > with Mathematica. It'd be much simpler to immediately see the cause > of the error instead of sifting through many lines of code. If you are seeing an error message: TraceDialog[expr,Message[___]] will stop execution at the point of the error. You can then examine the execution stack to locate the origin of the problem. Regards, Ssezi
- References:
- Finding the line that caused an error
- From: vj8usa <vj8usa@yahoo.com>
- Finding the line that caused an error