[Solved] WedDialog- how to debug?
-
Is there any way in order to get the console.log directly from a webdialog? Redirect to a file for example is a feasible way?
EDIT [Solution]: Just use the mechanism Ruby <==> WebDialog.....and substitute every console.log with your new function....
[HTML]
var callRubyCONSOLELOG = function(data) { query = 'skp;sendMessage2CONSOLELOG@' + data; window.location.href = query; }
[RUBY]
myWebDialog.add_action_callback("skp;sendMessage2CONSOLELOG") do |web_dialog, message| puts(message) end
Advertisement