Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28996 Discussions

console application not reporting line number of run time error

Brian_Murphy
New Contributor II
725 Views

I am running a console application in a CMD window.  The program exits with an error but says the line number is unknown.  What do I need to do to get the line number?  I tried to paste the cmd window stuff into this post, but line breaks get lost, and makes a mess of things.

Thanks,

Brian

0 Kudos
4 Replies
TimP
Honored Contributor III
725 Views

You should have compiled and linked with /traceback set.

0 Kudos
Brian_Murphy
New Contributor II
725 Views

Thanks bunches.  That did the trick.  It took me a while, though, to find the setting for it in VS2012.

Cheers,

Brian

0 Kudos
Steven_L_Intel1
Employee
725 Views

This is on by default for a Debug configuration

0 Kudos
Brian_Murphy
New Contributor II
725 Views

That makes sense, but I inherited this project from someone else who may have turned it off.  Anyhow, I've got it back on, and it's full steam ahead to the next hurdle.

Cheers,

Brian

0 Kudos
Reply