Hi Rick,
I've started using Live Reload with VS Code as the editor and it can be a real time-saver as you've noted. However one thing I'm seeing is that if I change a PRG, and I've got a VFP Debug session running, I'll get source out of date messages after the server reloads, which indicates the PRGs aren't getting recompiled after being changed. Is it possible to trigger a recompile when a PRG is changed along with the server restart? Or maybe it needs a CLEAR PROGRAM?
TIA

Make sure that SET DEVELOP ON
to force recompilation of code when source files change.
FWIW, the launch program has been updated in 7.25 to include a full unload optionally. You may want to create a new project and copy the launch.prg
from that project into your project (adjusting the top vars for your project names).
Specifically there's a flag at the top:
*** Recommended: Release memory and SET PROCEDURE and CLASSLIB libraries on every run
llReleaseLibraries = .T.
which affects:
*** Optionally release everything before you run
IF llReleaseLibraries
RELEASE ALL EXCEPT lcAppName
SET PROCEDURE TO
SET CLASSLIB TO
ENDIF
***************************************
*** LAUNCH FOXPRO WEB CONNECTION SERVER
***************************************
? "Server executed:"
? "DO " + lcAppName + "Main.prg"
*** Start Web Connection Server
DO ( lcAppName + "Main.prg")
RETURN
To be clear too: Live Reload can have a few small quirks that cause issues with getting the odd file locked error, but it's relatively rare and that of course won't show up when running without LiveReload.
+++ Rick ---
Thanks. I do have SET DEV ON.
I've been sitting on the 7.25 update. We're running 7.22 in production but perhaps it's time...
Most updates are very minor and mainly affect source files which automatically are applied as you recompile your app. Look at the change log which shows breaking changes.
Biggest issue for updates is updating the binaries and in some cases the templates (if you choose to do so). There's a topic in the help file that should help with updates...
+++ Rick ---
