Skip to content

Logging Errors? #12

Description

@jcott28

I'm not getting output when the bot js fails. I have the :
bot.on('error', function(msg, trace) {
console.log("Got an error from the virtual browser: ", msg, trace);
});
inside of the bot js file.

But when I try to do some things, which I know fail since the log ceases, I don't know why.

For example, if I were to toss in some jquery into the bot file, it fails as jquery is not loaded (Im guessing).
i.e.
console.log("I get this message");
$.ajax({
url: "http://my.url.com/chat/add",
type: "POST",
...
console.log("Nothing processes afterward");

How do you debug such situations?

Side note question: Do you use Ajax in your bot js file (not the dubtrackapi file)? If so, how did you get it imported?

Thanks! Great work thus far.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions