programstinator
programstinator

Reputation: 1376

Can Delphi programs running in debug mode interact with the IDE's text editor?

I would like to have a Form in which I could type a number and press a key and then the text editor would scroll down to the code line corresponding to the number I entered. Is this even possible? Is there some sort of API I could use to make such an app? (I don't really want to type a number and scroll down, I just want to know if I can:) If so, would this plugin work for all Delphi versions on one simple code base, or would my code have to contain a lot of ifs?

Upvotes: 2

Views: 286

Answers (2)

alzaimar
alzaimar

Reputation: 4622

The answer is: Yes. All it needs is a second IDE running. We used to do that all day long developing IDE plugins. But NO, you can't do that with the IDE you're actually working with.

It's like the dog chasing its own tail. Looks stupid and is kind of a deadlock.

Upvotes: 0

Uli Gerhardt
Uli Gerhardt

Reputation: 14001

You can write an expert and use the ToolsAPI for this task. I don't think a standalone application can easily achieve this.

Upvotes: 3

Related Questions