...
首页> 外文期刊>Automated software engineering >Dynamic Query-Based Debugging of Object-Oriented Programs
【24h】

Dynamic Query-Based Debugging of Object-Oriented Programs

机译:面向对象程序的基于动态查询的调试

获取原文
获取原文并翻译 | 示例
           

摘要

Program errors are hard to find because of the cause-effect gap between the instant when an error occurs and when the error becomes apparent to the programmer. Although debugging techniques such as conditional and data breakpoints help in finding errors in simple cases, they fail to effectively bridge the cause-effect gap in many situations. This paper proposes two debuggers that provide programmers with an instant error alert by continuously checking inter-object relationships while the debugged program is running. We call such tool a dynamic query-based debugger. To speed up dynamic query evaluation, our debugger implemented in portable Java uses a combination of program instrumentation, load-time code generation, query optimization, and incremental reevaluation. Experiments and a query cost model show that selection queries are efficient in most cases, while more costly join queries are practical when query evaluations are infrequent or query domains are small. To enable query-based debugging in the middle of program execution in a portable way, our debugger performs efficient Java class file instrumentation. We call such debugger an on-the-fly debugger. Though the on-the-fly debugger has a higher overhead than a dynamic query-based debugger, it offers additional interactive power and flexibility while maintaining complete portability.
机译:程序错误很难找到,因为发生错误的那一刻与该错误对于程序员来说是明显的之间存在因果关系。尽管诸如条件断点和数据断点之类的调试技术可在简单情况下帮助发现错误,但在许多情况下,它们无法有效地消除因果关系。本文提出了两个调试器,它们通过在调试程序运行时不断检查对象间的关系来为程序员提供即时错误警报。我们称这种工具为基于动态查询的调试器。为了加快动态查询评估,我们在可移植Java中实现的调试器结合使用了程序工具,加载时代码生成,查询优化和增量重新评估。实验和查询成本模型表明,在大多数情况下,选择查询是有效的,而在查询评估很少或查询域较小时,更昂贵的联接查询是可行的。为了以可移植的方式在程序执行过程中启用基于查询的调试,我们的调试器将执行有效的Java类文件检测。我们称此类调试器为即时调试器。尽管动态调试器比基于动态查询的调试器具有更高的开销,但它在提供完整的可移植性的同时还提供了额外的交互功能和灵活性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号