build a simple debugger with jdi to set breakpoints and retrieve the value of a variable
I am looking to build a debugger using java debug interface . My objective is to set a breakpoint and get the value of a variable. I found this answer close to what i am looking for, I understand that i have to use the following interfaces :- VirtualMachineManager , LaunchingConnector , ClassPrepareEvent , ClassPrepareRequest . But I cant figure out, how to set a breakpoint at a particular line and get the value of a variable or in what order should the interfaces be used. For example in the code below, how do i proceed to run it with jdi such that i get the value of the variable S import java