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

Is Debug Output to IDE at runtime possible?

ingo_berg
Beginner
706 Views
Hi,

Is there a possibility to write debug output to the debug output window of the IDE at runtime?

Regards,
Ingo
0 Kudos
4 Replies
Intel_C_Intel
Employee
706 Views
Yes, use the OutputDebugString API.
0 Kudos
ingo_berg
Beginner
706 Views
Thank you,

is there a fortran interface for this function available or do I have to do this on my own?
0 Kudos
Intel_C_Intel
Employee
706 Views
Here's ours:
Code:
!DEC$ ATTRIBUTES DLLIMPORT :: OutputDebugString
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_OutputDebugStringA@4' :: OUTPUTDEBUGSTRING

INTERFACE
	INTEGER*4 FUNCTION OUTPUTDEBUGSTRING (lpOutputString)
		!DEC$ ATTRIBUTES REFERENCE :: lpOutputString
		CHARACTER*(*)	lpOutputString
	END FUNCTION OUTPUTDEBUGSTRING
END INTERFACE
0 Kudos
ingo_berg
Beginner
706 Views
Thank you very much this should do the job.
0 Kudos
Reply