|
|
|
This page displays a list of available CSP pages within the same
directory. Click this link to see a demonstration of the the Zen Web Development Framework. |
Samples Menu | Source |
In this example I am setting the breakpoint to
ZB zListFiles+1^csp.menu.1
and then request the menu page within the CSP shell:
SAMPLES>d $SYSTEM.CSP.Shell()
CSP Shell
Command shell for debugging CSP pages. It looks and acts like a Cache programmer prompt, but you can use the GET or HEAD command to fetch a CSP page. You can set breakpoints, step into the code etc. You may pass query parameters to the page as well, eg.:CSP>>> GET /csp/samples/request.csp?A=1&B=2
The output you see is what would be sent to the browser, including any HTTP headers. You can also interact with the session, request and response objects via the special variables %session, %request and %response.
CSP:SAMPLES>>> get /csp/samples/menu.csp
This drops us into the regular command line debugger.
I hope this helps. -Fab
- Log in to post comments