fertliberty.blogg.se

Console.log not working in lighttable
Console.log not working in lighttable












console.log not working in lighttable

If you are not remote debugging, consider it. If you are remote debugging check the console output of the browser. The advantage of this approach is that you can connect and try or debug things using LightTable on already loaded live pages. The logging output is not being shown on the LT console (unless I write to the logger on the same file). I found that sometimes my console.log () would not appear in the terminal, but then I found that they could always be viewed through the Chrome developer tools during remote debugging. Script_tag.setAttribute("src", " script_tag.setAttribute("type", "text/javascript") Īlso this works also as a bookmarklet: javascript:(function()%7Bvar port %3D prompt("What's the port number%3F")%3Bvar script_tag %3D document.createElement("script")%3Bscript_tag.setAttribute("src"%2C "http%3A%2F%2Flocalhost%3A"%2Bport%2B"%2Fsocket.io%2Flighttable%2Fws.js")%3Bscript_tag.setAttribute("type"%2C "text%2Fjavascript")%3Bscript_tag.setAttribute("id"%2C "lt_ws")%(script_tag)%7D)() Var script_tag = document.createElement("script") var port = prompt("What's the port number?") You'l see the port there displayed in the URL of the HTML piece of code. When the page loads, I see other console.log messages (not from my extension), the alert window pop up but nothing printed to the console.

#Console.log not working in lighttable code#

Every bit of Light Table's code is available to the community because none of us are as smart as all of us. OPEN SOURCE Developer tools should be open source.

console.log not working in lighttable console.log not working in lighttable

Simply evaluate your code and the results will be displayed inline. alert ('CSS code: '+css) console.log ('CSS code:'+css) I have checked to make sure 'All' messages are selected, the context is set to 'top', etc. No more printing to the console in order to view your results. Press Ctrl + Space, type connect, and then select Connect to a browser. Alert works fine but console.log outputs nothing. Using the console in Chrome dev tools we can see console.table () at work The function console. The script will need and ask the the port and because this changes and every window uses a port this needs to be inserted manually. Console.table () Console.table is a great way of logging to the console that will parse your data and log in the console as a table. Pasting below code in console connected LightTable with the browser. A class is a structure composed by attributes and methods. When I click on View > Console I get the following error. Its not working because console.log() its not in a 'executable area' of the class 'App'. Thanks to Bergi for pointing in comments that innerHTML doesn't work and I have to use DOM methods instead. Hey guys, I just installed a fresh copy of Light Table 0.8.1 on Ubuntu 14.04 and am loving it.














Console.log not working in lighttable