Giter VIP home page Giter VIP logo

Comments (5)

getify avatar getify commented on June 27, 2024

i could consider having a "debug" mode where you'd get console.log()'s for each action that LABjs takes... would that be helpful?

from labjs.

fbuchinger avatar fbuchinger commented on June 27, 2024

I'd prefer some combined array/console logging like described here: http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/, as IE7 doesn't have a console and in IE8 console.log only seems to work with an open console window.

By storing the log in an array, i can inspect it later e.g. in a firebug lite session.

from labjs.

getify avatar getify commented on June 27, 2024

Hmm... I'm not sure I'd want to be that invasive to the current LABjs namespace as to have a set of publicly available arrays, etc.

I think you could solve what you're wanting even for IE<=8 with something like:

var global_console = [];
if (!window.console) {
   window.console = { log: function() { global_console.push.apply(global_console,arguments); } };
}

from labjs.

jdalton avatar jdalton commented on June 27, 2024

I know IE has a stylesheet limit of smth like ~32. Maybe the same is true for scripts.

from labjs.

getify avatar getify commented on June 27, 2024

there will be some sort of error logging and/or debug mode for LABjs 2.0. Still in the works.

from labjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.