Artifact 132bb0f431f5c23b19e999f432eb8f5176b68bf949a0773fc97062facf552f75:
- File docs/debughints.md — part of check-in [ced8768917] at 2019-03-06 22:49:09 on branch trunk — Documentation tweaks. (user: drh size: 1108)
Hints For Debugging Wapp Applications
Here are some suggestions for debugging Wapp applications:
If it seems like the wapp-param command is not working correctly, that might be because the same-origin policy is preventing query parameters from being parsed. Try adding this command to the top of the page generator proc, at least temporarily to see if that clears the problem.
If parts of your webpage do not appear to be working, that might be due to the restrictive default Content Security Policy (CSP) that Wapp uses. Try temporarily disabling the CSP using a command like
wapp-content-security-policy off
near the top of your page-generator proc.Temporarily insert the output of the wapp-debug-env command in your output to see what is going on. Example:
wapp-trim { <h1>Environment</h1> <pre>%html([wapp-debug-env])</pre> }