java - jdb stop at given line or method -


as cli-inclined programmer, i'd ask if java command line debugger jdb capable of running current position , stopping @ 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 advance line 211 single jdb command rather typing 7 'next' commands or set break point @ 211. cursory @ 'step', 'next', 'cont' not give me answer.

i know perl cli debugger can job nicely 'c' command.

thanks!

read documentation:

http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html

run cursor high level debug command composed from:

  • set breakpoint (stop @ file:line)
  • continue
  • clear breakpoint

see there's no disable breakpoint or disable when count times reached, high level debug commands debug cli should compound , keep in memory.

you can compound commands on vim plugin like

https://github.com/yuratomo/dbg.vim/blob/master/autoload/dbg/engines/jdb.vim


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -