As a CLI-inclined programmer, I'd like to ask if the Java command line debugger JDB is capable of running from current position and stopping at given line?
For instance,
200 public Trade create(TradeCreateReq req) {
201 validatePayments(req);
202 => Trade t = new Trade(OutBizType.of(req.getOutBizType()), req.getOuterId());
203
204 buildItem
205 .andThen(buildBuyer)
206 .andThen(buildToAddress)
207 .andThen(buildInvoice)
208 .andThen(buildPayTools)
209 .accept(req, t);
210
211 if (!t.isSecured())
212 t.setSecured(true);
213
214 return t;
215 }
I'd like to advance to line 211 with a single jdb command rather than typing 7 'next' commands or set break point at 211. A cursory look at the 'step', 'next', 'cont' does not give me the answer.
I know the Perl CLI debugger can this job nicely with 'c' command.
Thanks!