开发者

test without breakpoints

I have coded in c++ in visual studio for several years.

I am now working in java with eclipse.

the java programs are launched from a .bat file so I cannot breakpoint them to debug.

Without bein开发者_Python百科g able to step through my code i am finding it very hard to find the root cause of the error as the thrown exception is not usually the source of the problem.

How can I debug my code without access to breakpoints ?


You can find the main method, as suggested by Ben J, and run this from Eclipse. To pass arguments to it, edit the run configuration. e.g. Right-click on the main class, click "Run As" and then "Run Configurations...". Select the "Arguments" tab and enter whatever you need.

Or since you need to debug this, click "Debug As" and "Debug Configurations..." instead.


Use Maven or Ant to launch your programs, instead of a batch file. There is much better integration with Eclipse.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜