[petsc-users] Profiling/checkpoints

Jed Brown jed at jedbrown.org
Tue Aug 4 17:14:01 CDT 2015


Justin Chang <jychang48 at gmail.com> writes:

> Hi all,
>
> Not sure what to title this mail, but let me begin with an analogy of what
> I am looking for:
>
> In MATLAB, we could insert breakpoints into the code, such that when we run
> the program, we could pause the execution and see what the variables
> contain and what is going on exactly within your function calls. Is there a
> way to do something like this within PETSc?

Yes, they're called breakpoints and available with any debugger.

http://www.sourceware.org/gdb/onlinedocs/gdb/Set-Breaks.html

Compile with debugging symbols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150804/59e8f961/attachment.pgp>


More information about the petsc-users mailing list