raddebugger icon indicating copy to clipboard operation
raddebugger copied to clipboard

[Feature Request] Go to Address from context menu

Open bielok opened this issue 1 year ago • 1 comments

All observations are based on RAD Debugger 0.9.8 ALPHA.

Bear with me in the use of the term "symbol" in reference to any distinct semantic element in the source code, as found in a File view. This matters in the sense that, for example, comments are not addressable.

Summary:

  1. For all File views, include an item on the list of context menu options which allows calling "Go To Address" with the address value corresponding to the symbol under the cursor. This action would instantly switch focus to a Memory view if available. If no Memory view is available then nothing should happen, as is the case when toggling a Watch Expression without an active Watch view. If no address exists for the symbol under the cursor, as is the case for comments or punctuation, nothing should happen.

  2. For all Watch views, include an item on the list of context menu options which allows calling "Go To Address" with the address value corresponding to the expression under the cursor. This action would instantly switch focus to a Memory view if available. Currently there seems to be no context menu for the Watch view!

UPDATE:

  1. For all pins, include an item on the list of Watch Pin options which allows calling "Go To Address" with the address value corresponding to the pinned symbol. Ideally the Watch Pin context menu should appear when right-clicking any part of the "pinned box"; currently this only shows up when right clicking the pin icon.

Other implementations:

This feature is available in RemedyBG is the form of "Send to memory window" when right clicking a symbol.

image

Perhaps one difference is that, currently, the RAD Debugger shows the same context menu regardless of the location where you right-click in the File view. This means that you can request "Toggle Watch Expression At Cursor" for a non-addressable symbol and it will effectively do nothing. RemedyBG changes the context menu depending on what is under the cursor, thus, "Send to memory window" only appears on some targets.

RemedyBG also shows this option in the context menu for watch expressions:

image


I understand that this request may not align with current priorities. Thank you for the hard work on the debugger.

bielok avatar Feb 17 '24 14:02 bielok

Haven't used this debugger for a bit, as I'm currently doing things on Mac.

Here's how Xcode does it:

xcode-mem

Where View Memory of "x" would be the equivalent of Remedy's "Send to Memory Window". It works on any watched expression as well.

Xcode sucks by the way.

I am assuming -- given the open issue -- that no feature has been added to facilitate this use-case. I apologize for not verifying myself. I will be back developing on Windows soon.

bielok avatar Jan 15 '25 12:01 bielok