PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Debugging PVF from Mixed C#/FORTRAN solution

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
Hank Brandenburg



Joined: 22 Aug 2013
Posts: 12

PostPosted: Thu Dec 12, 2013 12:00 pm    Post subject: Debugging PVF from Mixed C#/FORTRAN solution Reply with quote

I've got a VS 2012 solution that contains a Windows form startup project and includes multiple C# and FORTRAN projects as well; they are set up as dependencies in the solution.

The FORTRAN projects are DLL projects. Right now I have a custom build step that copies the .dll to the debug folder of the startup project and this works reasonably well overall.

I am not able to "step into" the FORTRAN code when it is called by the C# routines. Is there a way to configure VS to allow interactive debugging of the FORTRAN routines?
Back to top
View user's profile
ams



Joined: 14 Jul 2004
Posts: 41

PostPosted: Thu Dec 12, 2013 3:02 pm    Post subject: Reply with quote

Hi Hank,

In a single debug session, you can debug the C# code or you can debug the Fortran code but you can't debug both. That's why you can't "step into" a Fortran routine from a C# one. Different debug engines are used for the two languages and they can't be in use simultaneously.

You should be able to debug in the Fortran code, though, by designating the PVF project to be the StartUp project and setting its Debugging | Application Command property to the full path to the application to be launched. These steps cause the PVF debug engine to be used for debugging. That said, I don't believe this feature is working correctly. When I tried a test case, debugging appeared to hang. I have opened TPR #19725 for this problem.

Annemarie
Back to top
View user's profile
Hank Brandenburg



Joined: 22 Aug 2013
Posts: 12

PostPosted: Thu Dec 12, 2013 5:58 pm    Post subject: Reply with quote

Thanks for the info ... I'll wait for an update before I try again!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group