1
How to debug tough3 correctly
I want to debug this code. When configuring tough3-eco2n, the command used is"/configure.sh --build-type=DEBUG --eos=eco2n --no-x11 --petsc-dir=/home/zhigao/petsc-3.17.0 --petsc-arch=test", And the executable file can run. But when I use gdb to debug it, the breakpoint is located to other locations. What is the reason and what is the solution.Thanks in advance.
And when I did breakpoint debugging in vscode, he did not stop at the breakpoint and ran directly. How to solve it? Thanks in advance.
1 reply
-
I am pretty sure that your simulation did not go through the breakpoint. Seems you have breakpoint in a function for domain partitioning with Metis. If you do not do the MPI simulation, this function will be skipped.