Auto stop before running? lazarus / 9-Editor ---------------------------------------------------------------------- Trenatos · 2018-02-22 22:42 I'm trying to figure out if there's a way to make Lazarus stop any running process and re-launch rather than having to press the stop button or keyboard shortcut. Right now: Press run. Make change. Press stop. Press run. Wanted: Press run. Make change. Press run. Does anyone know of a setting or way to make this happen? ---------------------------------------------------------------------- Martin_fr · 2018-02-22 23:06 There is no such setting. If a person makes changes to the source while debugging, it is not necessary always the case that the person wants to restart the process. I have often had that, when it takes a lot of steps to navigate the app to a problematic bit of code. Then when I made one change (could be a comment to an unrelated issue), I still want to continue, and see how the rest works, before I restart. But what you can do is record an editor macro. ctrl-F2, then F9 Assign it to a new key. You can't use F9, because it will always stop, even if nothing was edited. You still may need F9 to run to the next breakpoint. http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Macros ---------------------------------------------------------------------- Trenatos · 2018-02-22 23:34 I don't want it to stop when a change is made, just so that when I hit Run, if it's already running it should stop the process and then run it. Right now I've mapped start to Command + r and stop to Command + Shift + R. ---------------------------------------------------------------------- Martin_fr · 2018-02-23 00:21 Well you can map both to just one key. See macros. ---------------------------------------------------------------------- Trenatos · 2018-02-23 14:13 I'll take a look at that, thanks Martin