PascalScript: Looking for something like OnBeforeLineExec and OnAfterLineExec

102 Views Asked by At

I am writing a small IDE with Single Steps using the Debugdemo. Now I need an Event before and after a line is executed. I would like to disable my Editor while the current Line is executed. I found the OnLine Event but did not find out in what cases it is fired or how I can use it. Any hints are welcome.

Greetings Klaus

1

There are 1 best solutions below

2
On

The OnLine event is meant to alter the interpretation of code.
It is not meant for debugging purposes.

If you want to do that use the BreakPoints in TPSScriptDebugger.
Put a breakpoint on the line and after the line.
Now you will get a signal before and after the line is executed.