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
Colaborador honorário III
2.538 Visualizações

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

0 Kudos
5 Respostas
Steven_L_Intel1
Funcionário
2.538 Visualizações

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

Scott_L_
Novo colaborador I
2.538 Visualizações

 

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

 

jimdempseyatthecove
Colaborador honorário III
2.538 Visualizações

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

Steven_L_Intel1
Funcionário
2.538 Visualizações

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

Steven_L_Intel1
Funcionário
2.538 Visualizações

Feature request filed as DPD200369159.

Responder