Delphi调试中移动程序计数器
在 Visual Studio 中,当您使用断点进行调试时,您可以通过将执行光标拖动到另一行来更改接下来要执行的代码行;这可以让你跳过 IF 语句等。
我无所事事地想知道 Delphi 中是否有类似的功能有人知道吗?
我一直在 CPU 窗口(Delphi 2006)中查看,但您似乎只能按顺序运行指令,而不能跳过它们。
In Visual Studio, when you're debugging with breakpoints you can change which line of code will be next to execute by dragging the execution cursor to another line; this lets you skip IF statements and the like.
I was idly wondering if there was a similar feature in Delphi anyone knew about?
I've been having a look around in the CPU window (Delphi 2006) but you only seem to be able to run through the instructions in order, not skip them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 Delphi XE 中,您也可以将执行光标拖动到另一行。不是在 CPU 窗口中,而是在编辑器本身中。
In Delphi XE you can drag the execution cursor to another line as well. Not in the CPU window, but in the editor itself.
在CPU View中可以右键单击并选择“New EIP (Ctrl + N)”来设置指令指针。
In CPU View you can right-click and choose "New EIP (Ctrl + N)" to set the instruction pointer.
在 2007 的 IDE 中,您还可以从源代码中的“调试上下文”菜单设置执行指针。
我已经尝试过几次,但是非常棘手。不要尝试将指针移到任何开始结束块之外,否则稍后它会在 @ss 中咬住你
In the IDE of 2007 you can also set the execution pointer from the Debug-Contextmenu in the sourcecode.
I've tried it a few times, but its very tricky. Don't try to move the pointer outside any begin-end block or it will bite you in the @ss later