This discussion is archived
1 Reply Latest reply: Aug 29, 2012 11:36 PM by EJP RSS

How to print Line numbers as and when java code is executed

958930 Newbie
Currently Being Moderated
H All,

I want to trace which lines are executed in my code so that I can highlight those lines. Due to this i am able to trace the code which is not tested.

I found out that JDB is way through which I can actually debug my application but I am not able to connect JDB with code which is running (Currently on eclipse).
So the scenario is that I want to connect to running code (eclipse/test environment ) and then I can monitor which code is not executed so that we can figure out the ways to test that code .

Thanks in advance.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points