|
| Disable TRACE function in EXE only |
| Iniciado por vvido, 12,feb. 2015 11:34 - 2 respuestas |
| |
| | | |
|
| |
Miembro registrado 94 mensajes |
|
| Publicado el 12,febrero 2015 - 11:34 |
I am using TRACE command during development (running one ore some windows directly from the development environment).
I would like to keep all trace command in the source, but I do not want that the the trace window opens when the distributed EXE version of the program is run.
Is there a setting which allows such behaviour ? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,febrero 2015 - 12:01 |
Hi
A setting, no...
A very simple trick, yes
Create a global procedure called trace. It will overload the normal function.
In it, do If intestmode() then wl.trace end
You are done
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
NEW: WXReplication, your open source replication system is available on my web site!!! WXShowroom.com: Show your projects! More information on http://www.fabriceharari.com
On 2/12/2015 5:34 AM, vvido wrote:
I am using TRACE command during development (running one ore some windows directly from the development environment).
I would like to keep all trace command in the source, but I do not want that the the trace window opens when the distributed EXE version of the program is run.
Is there a setting which allows such behaviour ? |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 94 mensajes |
|
| Publicado el 12,febrero 2015 - 13:32 |
Found something - InTestMode() -- to detect test mode - TraceStart(trDisable) -- to switch tracing off |
| |
| |
| | | |
|
| | | | |
| | |
|