Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

error stop and the debugger

IanH
Honored Contributor III
985 Views

A feature request - could the runtime code for error stop do something equivalent to IF (IsDebuggerPresent()) CALL DebugBreak()

0 Kudos
5 Replies
Steven_L_Intel1
Employee
985 Views

Interesting idea. I'll file a feature request when I get back to the office later this week.

0 Kudos
Scott_L_
New Contributor I
985 Views

 

If the "psuedocode"  (??)  IF (IsDebuggerPresent()) CALL DebugBreak() 

does what it looks like it does, then it would be great if my good old friend the PAUSE statement did this also. 

Yes,  I know its deprecated.  Could this mark a comeback?

 

thanks,

scott

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
985 Views

For PAUSE, replace it with

CALL YourPAUSE("Your Message")

PAUSE is typically not used to terminate a program.

You can also "fancy-up" YourPause to pop-up a dialog box with whatever you want.

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
985 Views

Doing a DebugBreak for PAUSE would be inconsistent with the definition of PAUSE.

0 Kudos
Steven_L_Intel1
Employee
985 Views

Feature request filed as DPD200369159.

0 Kudos
Reply