How to tell if running from IDE/locally?

Is there a property of App or Session that indicates whether a web app was started from the IDE and/or is running locally? I haven’t been able to find one. I’ve written this code that works but may not be the best solution:

dim tmpsession as websession=SessionAtIndex (0)
if tmpsession<>nil then
if instr(tmpsession.remoteaddress,“127.0.0.1”)>0 then
’ running locally
end if
end if

The DebugBuild constant will tell you if it’s running through the IDE.

Thanks, I knew there had to some simple way.

Which doesn’t mean its running locally :stuck_out_tongue:
If you use the remote debugger and are debugging on a different machine DebugBuild will still be true but its not necessarily “local”