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

Debug fortran dll from Managed Code in Release mode

Ngu_Soon_Hui
Beginner
621 Views
Thanks to the tutorial here, I can debug fortran dll from Managed code in debug mode.

And we all know that we can debug managed code in release mode provided that the pdb file exists.
But is it possible to debug a fortran dll from managed code in release mode?
0 Kudos
3 Replies
Ngu_Soon_Hui
Beginner
621 Views
No reply.. anyone has any idea?
0 Kudos
Arjen_Markus
Honored Contributor II
621 Views
Debugging any program requires cooperation from that program - most often in the form of the compiler and linker preparing it for debugging. So I do not think there is any possibility to do what you want.

If the DLL itself is prepared for debugging you may stand a chance, but I have no experience with that.

Regards,

Arjen
0 Kudos
Steven_L_Intel1
Employee
621 Views
In the Fortran DLL project, set the property Debugging > Command to the name of the executable that will run your managed code program. Set a breakpoint in your DLL routine. Press F5 to start debugging. Your managed code program will start and, when it calls the DLL, the breakpoint should be hit.

This is not specific to managed code - you can use it with any executable (say, Excel.)
0 Kudos
Reply