Opened 12 years ago
Closed 12 years ago
#9776 closed enhancement (fixed)
Open source code in editor
Reported by: | bonefish | Owned by: | anevilyak |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/Debugger | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Often when finding a problem while debugging a problem one wants to immediately edit the source file in question. Not always is this file already open. An item in the source view's context menu to open the file (ideally at that line) in the editor would be a time-saving feature.
Change History (6)
comment:1 by , 12 years ago
follow-up: 3 comment:2 by , 12 years ago
For the hyperlink feature I recently added to Terminal I simply used system("open <file>:<line>")
. That actually works since hrev45662.
follow-up: 4 comment:3 by , 12 years ago
comment:4 by , 12 years ago
Replying to anevilyak:
Should be simple enough to add then, though I'm curious to see how open implements that since I'd rather avoid calling system() if possible.
open just sends a message to Tracker. You can do that as well, of course. As Siarzhuk mentioned, you just have to add a be:line
field to an otherwise regular B_REFS_RECEIVED
message.
comment:5 by , 12 years ago
Status: | new → in-progress |
---|
Thanks for the tip, will implement this tonight after work then.
comment:6 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Implemented in hrev45695.
I hope this may be usefull for work on this tiket: handling of RefsReceived with defined line/selection restoring was [re]implemented in StyledEdit in hrev45071. And as far as I remember, be:line support in Pe exists from the very beginning.