java - Can eclipse debug or run two program in a project -


can eclipse debug run 2 program in project? mean have 2 program public static void main() method. ok debug them @ same time? have tried that. there 2 display console. there 2 threads in debug window. can click thread decide program wanna debug. result run or debug program in way seems different run or debug them seperately? 1 has similar experience?

enter image description here

yes, can run , debug 2 or more java programs @ same time in eclipse without them influencing each other. in fact can run , debug same main method multiple times @ once without problems. reason each time click run or debug, new jvm instance created, , current set of class files loaded. caveat if both programs rely on shared resource, can influence each other indirectly. without seeing code, hard sure why different results when run multiple programs simultaneously.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -