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

error stop and the debugger

IanH
Honored Contributor III
966 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
966 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
966 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
966 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
966 Views

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

0 Kudos
Steven_L_Intel1
Employee
966 Views

Feature request filed as DPD200369159.

0 Kudos
Reply