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.

Debug mode don't execute code

softronik
Beginner
1,831 Views
Hi,

I've justinstalled the full version of my visual Fortran Compiler for Visual Studio 2008 (with company license). I've tried to compile in debug mode, an"hello world" console program but it doesn't want to execute at all (but it compile as well).A blank console windows appears within 1 second and disappears instantly.

The break point i've dropped before this command: "print *, 'Hello World'"is not reached by the compilator. If I run in non-debug mode (ctrl + F5) the code is compiling with success and the console windows shows the "hello world" word.

If I execute the code by pressing "F11", the debugger goes into "_tmainCRTStartup" function within crt0.c and do nothig else and exit application.

Also, I've tried to remove and reinstall the compiler.

What is the problem? Any idea ?
0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,831 Views
Ok, I think I may have an idea. Your co-worker's project folder is F:\Console3\ whereas yours is D:\Working\Alcan\nergie-lectrique\Console4. It maybe that the VS2008 Debugger has a problem with path names that have "international" characters in them, though I would think Microsoft would have fixed that problem long ago.

Please try as an experiment to create a project in a folder with a shorter name that doesn't have accented characters and see if it works. I will do some experiments here as well.

View solution in original post

0 Kudos
12 Replies
Steven_L_Intel1
Employee
1,831 Views
It is executing the program - just not hitting the breakpoint. All the other behaviors you mention are to be expected. (You can continue from where you get with F11.) Are you building a debug configuration? How about setting a breakpoint on the PRINT itself?
0 Kudos
softronik
Beginner
1,831 Views
When I said "before the print" I mean "on the print" itself.
I am building a debug configuration (Debug mode selected in the drop down zone [debug/release]).
0 Kudos
softronik
Beginner
1,831 Views
In addition, when hitting F5, all breakpoints turn to "disabled state" with an yellow warning beside.
0 Kudos
Steven_L_Intel1
Employee
1,831 Views
Would you please ZIP your solution/project folder and attach the .zip here? I want to see what you did.
0 Kudos
softronik
Beginner
1,831 Views

Hi,
there is the helloworld Zip solution. I've also dropped a screenshot when hitting F5.

0 Kudos
Steven_L_Intel1
Employee
1,831 Views
What I see from the screenshot is that you don't have an open solution - perhaps you just copied the files somewhere and opened the .vfproj? If you rebuild the project, which will create a solution, then you will be able to debug. I can reproduce the problem if there is no solution open.
0 Kudos
softronik
Beginner
1,831 Views

The screenshot were teken right after hitting "F5" so in this case, the Solution Explorer disapear to make room for other panels. The solution is created yet (see attachment) and if I rebuild the projectans Hit F5,the debuggerdoen'tstop at my breakpoint.

Also, i've installed the Visual Fortran packagefor VStudio 2008 on another computer and it does the same behavior.

0 Kudos
Steven_L_Intel1
Employee
1,831 Views
When I took your original ZIP, I saw the same behavior if there was no solution open. But if I did a rebuild, it did break. Would you please attach a new ZIP that includes the solution files?
0 Kudos
softronik
Beginner
1,831 Views
Hi,
I've posted 2 zip package with 2 solutions made by 2 computers.
Console3.zip is an Hello World Console Solution, provided by a co-worker and does go thru debug fineon hisvisual fortran and mine.

Console4.zip is an hello world console Solution, provided by me and doesn't go thru debug on both visual fortran.
0 Kudos
Steven_L_Intel1
Employee
1,832 Views
Ok, I think I may have an idea. Your co-worker's project folder is F:\Console3\ whereas yours is D:\Working\Alcan\nergie-lectrique\Console4. It maybe that the VS2008 Debugger has a problem with path names that have "international" characters in them, though I would think Microsoft would have fixed that problem long ago.

Please try as an experiment to create a project in a folder with a shorter name that doesn't have accented characters and see if it works. I will do some experiments here as well.
0 Kudos
softronik
Beginner
1,831 Views
Resolved! Thanks you Steve for your answer. the path name with international characterswas the problem.
0 Kudos
Steven_L_Intel1
Employee
1,831 Views
I'm glad to hear it, though it really should work either way. I will run some experiments and let the developers know.
0 Kudos
Reply