Eyal Peleg

what could be a reason for not seeing any console.debug messages

I can see the device listed in the http://debug.phonegap.com/client/#{some sort of id} window.
but when I switch to the console window I don't see any of the console.debug messages.
1 person has
this question
+1
Reply
  • Andrew Lunny
    Hard to say - perhaps the console.debug calls were made before the client was hooked up to the debug server.

    You can also try storing the debug messages in a variable on the client:


    window.debugMsgs = [];
    window.debugMsgs.push("some code");


    And then in the weinre console, check that variable for what's in there.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned

  • Eyal Peleg
    I did use this method at some stage.
    but in some cases the no console.debug messages are sent displayed and on some other it looks like its working o.k.

    maybe I should keep a reference to the original console when my page loads and then if (console===window.original_console) I should write to the buffer and if this is not the case (i.e. the console has been modified then I should dump the buffer to the new console...)

    I will have to try this.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited kidding, amused, unsure, silly indifferent, undecided, unconcerned