System("PAUSE") like command for Debugging
Hi all,
Can anyone please suggest how while debugging the code in OpenFOAM, we can halt the simulation. I want to print some output, then have the simulation halt and then continue by pressing any key. I am working on my first code in OpenFOAM and also in C++. Thanks.:) |
Learn how to use GDB. See also http://www.tfd.chalmers.se/~hani/kur...ing.pdf
|
Quote:
As the window refreshes I can't see the output. But definitely, I can use a log file which I thought now. |
Use the log file, or interactively with Ctrl+Z (general bash command to send a process to sleep). You can wake it again with the command "fg".
|
All times are GMT -4. The time now is 00:02. |