如何在jbuilder7中调试一个由其他类调用的类?

jixian 2003-04-21 05:05:27
我的程序有一个大的类,设计由其他类调用,那么我如何调试它?
...全文
43 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
jixian 2003-04-22
  • 打赏
  • 举报
回复
有没有人帮下忙,很急。。。。。。
getdown 2003-04-21
  • 打赏
  • 举报
回复
junit
jixian 2003-04-21
  • 打赏
  • 举报
回复
现在的状态是,调试可以进入含有main的类,然后进入中间的类(没有源码),然后进入我要调试的类的一个编译后的文件,而不进入我的源码中,测试一个输出语句能执行,证明确实执行了我要调试的类。
mercury1231 2003-04-21
  • 打赏
  • 举报
回复
there are various ways of testing such a class.

1. you can provide simple simulated parameters to this class and test it to see if it at least works.
2. you can set some break points in the class to see if it progresses fine in the procedure.

the best way is to test your class with the other module that were designed to interface.
CoolRay 2003-04-21
  • 打赏
  • 举报
回复
在第一层测试类、第二层测试类....里写好测试程序,debug测试类,step over,step into总可以调试吧
不可以把它变成公开的来测试吗?
yuebenxian 2003-04-21
  • 打赏
  • 举报
回复
new 对象就可以了啊...不明白.
对象.成员函数就可以.
xuw 2003-04-21
  • 打赏
  • 举报
回复
不太明白,但程序这东西都是一个调一个的,我想你应找最后一个调!!!
jixian 2003-04-21
  • 打赏
  • 举报
回复
里面写main是无法使用自己的因为要依靠其他程序来传递复杂的参数启动这个类,而直接启动这个类的类是不公开的
CoolRay 2003-04-21
  • 打赏
  • 举报
回复
什么意思?
在目标类的main里面写测试程序不就行了

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧