7.3 release note mentions ENV support for debug and debug all. Can you please explain that a bit?
I see no ENV support mentioned in the release notes.
Debug is the debug info you see in the output panel in Wappler. Debug all is the option that when enabled outputs all server action steps for development target. Check the doc linked above, it explains everything.
Hi @sid. I think you may be thinking of the feature request I posted:
Would love them to be able to add this.
I misread the release notes. Ok.
There is already a way to control the Debug mode in settings via ENV, but that does not control the new functionality which enables output of all steps.
Ooh, tell me more.
In app>config>config.json:
```
{
"debug": "{{$_ENV.DEBUG_MODE == 1}}",
}
```
Thanks @sid.
@Teodor - is this something we can control in the globals action? Could this be the solution to what my feature request is asking for?
Yes you can now indeed control debugging with environment variables, this is how we do it on our own local server.
Use:
WAPPLER_SERVER_DEBUG=true
To control the debug
And
WAPPLER_SERVER_DEBUG_OUTPUT_ALL=true
To output all step data even without output on.
Can I just check I’m understanding this correctly?
Are you saying we can set debug on or off like this?
And how would I set this based on another variable like the IP address?
No you can’t do conditional debugging enabling. The debug flags are set when the server starts and can’t be changed runtime.
