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.
29285 Discussions

DebugBreak or other command to "break" into the debugger?

justanotherdude
Beginner
1,779 Views

I found the following article:

http://software.intel.com/en-us/articles/intel-fortran-compiler-microsoft-debugging-function-debugbreak/

Unfortunately when I tried to implement this code and compiled I received the following error:

Error 1 error #7286: This symbol has multiply declared DEC$ ATTRIBUTES ALIAS attribute. [DEBUGBREAK] 176

I'm using the Intel FORTRAN compiler.

I found using the debugbreak() in C++ to be very powerful, so thank you for any insights.

As an aside, I tried to right click on my FORTRAN executable in the Windows Task Manager and select "Debug", but that also did not work. I was a little suprised, and I believe the error message was that the file could not be found or something equivalen.

Thank you again for any feedback and insights.

0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,779 Views
I had not seen that article before - it needs some correction.

Just add:

USE KERNEL32

after your PROGRAM, SUBROUTINE or FUNCTION statement and then you will be able to call DebugBreak.
0 Kudos
justanotherdude
Beginner
1,779 Views
I had not seen that article before - it needs some correction.

Just add:

USE KERNEL32

after your PROGRAM, SUBROUTINE or FUNCTION statement and then you will be able to call DebugBreak.

Steve - Thank you for the post and the insights...I tried it out and I was able to compile successfully, but when I tried to run I encountered an issue that looked similar to a Library/DLL not loading. By any chance do you know what edits I would need to make in order to include the Library/DLL that may be causing the issue? I think I'm really close, but I feel like I haven't added a dependency or something. Do you know where I would need to add the dependency in MS Visual Studio & Intel Fortran 11 in order to get it to work out?

Thanks again for any insights and feedback you are able to provide.
0 Kudos
Steven_L_Intel1
Employee
1,779 Views

Please show the complete and exact text of the error message. I can't figure out what you're referring to by your description.
0 Kudos
Reply