Sha256: a783fe38f9644912428f4fb3cbb4580ef6d983ee2514b01227d8d9bea4f50f1b
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
# Debugging Ovto app ## console.log In an Ovto app, you can print any object to developer console by `console.log` like in JavaScript. ```rb console.log(state: State.new) ``` This is mostly equal to `p state: State.new` but `console.log` supports JavaScript objects too. (Note: this is not an official feature of Opal. You can do this setup by this:) ```rb require 'console'; def console; $console; end ``` ## ovto-debug If the page has a tag with `id='ovto-debug'`, exception is shown in the tag.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ovto-0.2.3 | book/guides/debugging.md |
ovto-0.2.2 | book/guides/debugging.md |
ovto-0.2.1 | book/guides/debugging.md |
ovto-0.2.0 | book/guides/debugging.md |