BoxLang Quick Tips - Better Web Debugging
Briefly

BoxLang Quick Tips - Better Web Debugging
"The BoxLang MiniServer is a lightweight web server that you can use to test your web applications."
"<bx:script> function helloWorld(string name="nameless") { return "Hello, #arguments.name#"; } </bx:script> <bx:output> <p> Let's test our function: #helloWorlde("Ray")# </p> </bx:output>"
"Turns out, there's an incredibly easy way to do this. The BoxLang MiniServer takes multiple different arguments at the command line, one of which, --debug, will turn on detailed error information."
"In production, this is actually safer, as revealing too much information could give attackers information they need to attempt a hack on your application, but locally, it sure would be nice to have more information, right?"
BoxLang MiniServer is a lightweight web server for testing BoxLang web applications and has received improvements such as flexible URL rewriting. Simple coding mistakes, like calling a misnamed function, produce terse error messages that are manageable in small apps but hard to trace in larger applications. Production configurations intentionally hide detailed error information to reduce security risk, but local development benefits from more verbose diagnostics. The MiniServer accepts command-line arguments, and the --debug option enables detailed error output to make locating and fixing runtime issues much easier during local testing.
Read at Raymondcamden
Unable to calculate read time
[
|
]