sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Solved] WedDialog- how to debug?

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 399 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bomastudioB Offline
      bomastudio
      last edited by

      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
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement