DevTools icon indicating copy to clipboard operation
DevTools copied to clipboard

DevTools should allow moving instruction pointer / setting next line to execute

Open ericlaw1979 opened this issue 4 years ago • 5 comments

It would be very useful if, when paused at a breakpoint, the execution pointer could be moved to some later line (to skip over the intervening lines).

This is a capability available in various native code debuggers (Visual Studio, Delphi, WinDBG, etc) and would be much appreciated when trying to debug other sites' code (e.g. during site compat testing, etc).

AB#42413538

ericlaw1979 avatar Nov 10 '22 17:11 ericlaw1979

I don't want anything Microsoft

On Thu, Nov 10, 2022, 12:06 PM Eric Lawrence @.***> wrote:

It would be very useful if, when paused at a breakpoint, the execution pointer could be moved to some later line (to skip over the intervening lines).

This is a capability available in various native code debuggers (Visual Studio, Delphi https://www.ideasawakened.com/post/delphi-tip-move-the-instruction-pointer-during-debugging, WinDBG, etc) and would be much appreciated when trying to debug other sites' code (e.g. during site compat testing, etc).

— Reply to this email directly, view it on GitHub https://github.com/MicrosoftEdge/DevTools/issues/117, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2ZI6OAWZFDQ7GA52JV2243WHUTRBANCNFSM6AAAAAAR4Y2M7E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Ashbri4 avatar Nov 10 '22 18:11 Ashbri4

Because I am not going to pay for it

On Thu, Nov 10, 2022, 1:01 PM Brian Pitre @.***> wrote:

I don't want anything Microsoft

On Thu, Nov 10, 2022, 12:06 PM Eric Lawrence @.***> wrote:

It would be very useful if, when paused at a breakpoint, the execution pointer could be moved to some later line (to skip over the intervening lines).

This is a capability available in various native code debuggers (Visual Studio, Delphi https://www.ideasawakened.com/post/delphi-tip-move-the-instruction-pointer-during-debugging, WinDBG, etc) and would be much appreciated when trying to debug other sites' code (e.g. during site compat testing, etc).

— Reply to this email directly, view it on GitHub https://github.com/MicrosoftEdge/DevTools/issues/117, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2ZI6OAWZFDQ7GA52JV2243WHUTRBANCNFSM6AAAAAAR4Y2M7E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Ashbri4 avatar Nov 10 '22 18:11 Ashbri4

@ericlaw1979 if I understand your request correctly, I think this is already possible:

  • Set a breakpoint somewhere and hit it.
  • Right click on the line where you want to move (in the line number gutter)
  • Select Continue here

Execution continues from your current breakpoint and pauses again at the line you right-clicked on.

Does that help?

captainbrosset avatar Nov 28 '22 16:11 captainbrosset

Unfortunately, no. The goal is to move instruction pointer (changing the flow of execution by skipping lines), not to simply "run until a future (temporary) breakpoint."

ericlaw1979 avatar Nov 28 '22 23:11 ericlaw1979

Thanks for clarifying. I was unaware that this feature existed elsewhere. This seems very useful. I'll make sure this is tracked by the DevTools team and prioritized.

captainbrosset avatar Nov 29 '22 08:11 captainbrosset