| View previous topic :: View next topic |
| Author |
Message |
das
Joined: 02 Nov 2006 Posts: 4
|
Posted: Mon Jun 09, 2008 11:14 am Post subject: debugging in vs 2008 c++ to pvf |
|
|
| Is there any trick to debugging mixed language c++ calling fortran in vs 2008? When I place a break in the c++ fortran call and try to step into the fortran, it steps over. When I try to put a break directly into the fortran the break is disabled saying that no symbols have been loaded for this file. What am I missing? |
|
| Back to top |
|
 |
hongyon
Joined: 19 Jul 2004 Posts: 551
|
Posted: Mon Jun 09, 2008 12:44 pm Post subject: |
|
|
Hi,
Are you using debugged version or release version? Please make sure your configuration is debug version?
Hongyon |
|
| Back to top |
|
 |
das
Joined: 02 Nov 2006 Posts: 4
|
Posted: Tue Jun 10, 2008 8:02 am Post subject: |
|
|
| It is debug version, both the in c++ main that ouputs the executable and the pvf that is set to output a static library. |
|
| Back to top |
|
 |
hongyon
Joined: 19 Jul 2004 Posts: 551
|
Posted: Tue Jun 10, 2008 9:37 am Post subject: |
|
|
Hi,
You will need to set PVF project as a start up project. Then on a property page of PVF start up project -> Configuration properties -> Debugging, there should be a Command tab, you then enter a command(Path to C++ main program) and other environments variables.
Hongyon |
|
| Back to top |
|
 |
das
Joined: 02 Nov 2006 Posts: 4
|
Posted: Wed Jun 11, 2008 10:02 am Post subject: |
|
|
| I made the PFV project the startup project and I set the command as the c++ exe and now it won't stop at breaks in either the fortran nor the c++ source. What am I missing? |
|
| Back to top |
|
 |
|