Today I made my first serious attempt to work with pgdbg. My fortran code is mostly legacy and it simply took me too long to eliminate errors by adding and removing write-statements all the time. I just changed all the -O3 options in the makefiles into -g and recompiled and linked. The resulting program is called from a scriptfile that also sets some environment variables and passes commandline parameters to the executable. In the scriptfile I just added the name “pgdbg” in front of the name of the executable. Then I ran the scriptfile and pgdbg shows the sourcecode of the main program.
So far so good it seems.
–> polite question: How can I put a breakpoint at a given line of source that is in view in pgdbg using just the pgdbg gui? Is there a shortkey? I only found out that “Options -> Set breakpoint” asks for the name of the routine where I would like to place a breakpoint. I was not asked at which line the breakpoint should be placed!
Next, I just accepted the breakpoint at the beginning of the routine, which now was marked by a red dot, and I tried to run the program from within pgdbg by pressing the green “run” button. Nothing seems to happen.
–> polite question: What am I doing wrong?
I get the impression that pgdbg is a powerful tool, but that its gui is (very) limited in functionality. Background: I am a spoilt user of pgdbg. Two decades of coding PASCAL in both the Borland IDE (Integrated Development Environment) and in the FreePascal IDE have put a strong mark on my way of working. I don’t see the debugger as a tool to remove errors, but as a supportive tool to monitor execution, even when all is going well.
–> Rude/indecent question: Would you please for one time do me a favour and download the FreePascal install package for Windows, freeware under gpl at:
and double click on the icon that is placed on the desktop after installation of the package? FreePascal has a decent uninstall menu-item in the Start–>programs menu, so you can easily and fully get rid of it afterwards. The FreePascal IDE is a clone of the old Borland IDE, which stems from the '80-s of the former century. This is the type of environment that allows for fast, really fast, development of programs. No need to type in intricate debug commands. Direct visual feedback. All functionality accessible both via the menu and via shortkeys. Is there a chance that pgdbg will have a gui with equally powerful functionality in the 21-st century?
Thanks for answering the polite questions and, in case the “rude/indecent” proposal offends you, my apologies.