Is there a way to start jdb and attach from the beginning a list of breakpoints?
Something along the line of jdb -<?some_flag?> ./breakpoints Main
It is trully tedious entering these breakpoints manually upon starting a new debugging session, and I am sure there must be a way. The documentation does not make it clear that such a thing exists.
Update
I have figured it out with the use of:
this post
this sheet
Solution
The
read
command reads all the commands thatjdb
needs from a specified file. In this file one can write all the breakpoints and commands before starting jdb.Example workflow
So this is the workflow I have now:
.jdbrc
in my Home folder that contains 1 linebreak.lines
where I define all my breaks prior to running JDB