Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Debugging verificatum with jdb

David Ruescas edited this page Jul 15, 2014 · 2 revisions

Add the following flags to the relevant script, (for example vi /usr/local/bin/vmnv)

-Xdebug -Xrunjdwp:transport=dt_socket,address=6000,server=y,suspend=y \

Then to connect to the process, use

jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=6000

To set a breakpoint, for example

stop in verificatum.protocol.mixnet.MixNetElGamalInterfaceRaw.readCiphertexts

then use step, dump this, etc