There’s a handy tab completion feature in the OpenLaszlo debugger now. It’s been around for a few months, but I’ve avoided using it mainly because the keyboard focus was a little flaky on my old Windows laptop.
It works just like a typical Unix (say bash) shell:
- Recompile your application with the debugger. e.g. browse to the Hello, World! example with ?debug=true.
- Click on the Debugger text input field, and begin typing. e.g. can
- Hit tab. The Debugger should complete the word “canvas”.
- Now add a dot, and hit tab once. e.g. canvas.
- If there are too many possible matches, you’ll see output like the following in the Debugger:
INFO: 456 possibilities: press ‘\t’ again to see them all - Hit tab again, and you should see a long list of possible properties on canvas:
INFO: Possible completions: $cfn $isstate $lzc$bind_id $lzc$bind_name … - Now add “sub” to the text input field. It should read canvas.sub
- Hit tab. You should see two possible matches for canvas.sub:
Possible completions: subnodes subviews - Add a “v”, so your text input field now says canvas.subv
- Hit tab. The debugger should complete that to canvas.subviews, since its the only possible match. Now hit the enter key, and the Debugger will inspect canvas.subviews.
Enjoy!
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment