[CPMD-list] about debugging in cpmd

Bin Pan binpan at MIT.EDU
Sat Jun 30 05:37:57 CEST 2007


Dear CPMD users,

I am currently working on modifying some code in CPMD. Unfortunately 
I haven't found a good way in debugging CPMD.
I compiled CPMD using PGI fortran compiler so that I have to use its 
debugger pgdbg. What I found strange is that I can not set
breakpoints at anywhere I want them to be. When I pressed the button 
"next", meaning only to run the next single line of code, the program seemed
to jump several lines and stopped at random a new position.

How can I make it only run a single line of code, just like in GNU 
fortran debugger gdb, when typing "n", it only runs a single step?
Did anybody have similar experience in having this problem?

I would appreciate to know how you guys debug your code using PGI 
compiler and debugger.
Thanks a lot!

Best regards,
Bin.



More information about the CPMD-list mailing list