dwscript - 任何人都可以帮助编辑器调试器示例吗?

发布于 2024-10-09 23:02:54 字数 208 浏览 0 评论 0原文

我正在查看 Delphi 的优秀 dwscript 请参阅此处,它提供了一组有用的类来实现为您的应用程序内置 pascal 脚本。我非常感谢一些关于如何将提供的调试接口与编辑器链接在一起的示例的帮助,以便我可以创建断点(并且最好看到监视)。请问有人走过这条路吗? 谢谢, 布莱恩

I'm looking at the excellent dwscript for Delphi see here which provides a useful set of classes to implement a built in pascal script for your Application. I would very much appreciate some help with an example of how to link together the supplied debugging interface with an editor so that I can create breakpoints (and ideally see watches). Has anyone gone along this route please?
Thanks,
Brian

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慕巷 2024-10-16 23:02:55

目前大部分调试器文档都在这篇文章中

http://delphitools .info/2010/12/03/spotlight-on-dwss-idebugger/

此外,自原始 DWScript II(在 SourceForge 上)以来,调试器界面并没有发生太大变化(如果有的话),因此那里的旧演示希望通过最小的调整仍然可以工作。

http://sourceforge.net/projects/dws/

对于断点,您基本上只需检查源代码您在 DoDebug/OnDebug 中针对断点列表获得的 Expr 的位置。一种简单而有效的方法是仅使用 TBits - 将其用作布尔数组,其中各行有一个断点)。
评估/观察需要查找一个符号,该符号将为您提供它的堆栈地址,然后您可以在堆栈中查找该值。

我将尝试添加/更新 v2.2 的调试任务演示(除非其他人在我之前完成;))

编辑:截至 14 年 2 月 11 日,有一个 TdwsDebugger 组件以方便调试任务。

Most of the debugger doc is currently in this post

http://delphitools.info/2010/12/03/spotlight-on-dwss-idebugger/

Also the debugger interface hasn't changed much (if at all) since the original DWScript II (on SourceForge), so the old demos there should hopefully still work with minimal adjustments.

http://sourceforge.net/projects/dws/

For breakpoints, you basically just check the source position of the Expr you get in DoDebug/OnDebug against the list of breakpoints. One simple and efficient way is to merely use TBits -using it as a boolean array of which lines have a breakpoint).
Evaluating/watching requires looking up a symbol, which will give you it's stack address, you can then lookup the value in the stack.

I'll try to add/update a debugging tasks demo for v2.2 (unless someone else does it before me ;) )

edit: as of 11-02-14 there is a TdwsDebugger component to facilitate debugging tasks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文