Giter Club home page Giter Club logo

aardwolf's People

Contributors

jklmli avatar lexandera avatar matjaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aardwolf's Issues

Files with Regular Expression

If one of the files contains a regular expression you'll get a Syntax error in the generated file.

To reproduce you can add the following line anywhere in sample/chat..js

(function () {
    var reg = /exp\(/g;
})();

The result is that the sample is broken

Issues in Code Highlighter

In some cases, the code highlighting seems to be off by a line. Please refer to http://youtu.be/GCrs9nd-c8E for more details.

Also, stepping "in" and "over" does not seems to get code within functions. As you can see from the video, when you step over, it goes from one function to the next, but there seems to be no way to debug code within the functions. I tried setting breakpoints but it seems to skip over that as well (the video does not reflect this).

Support for dinamic websites?

Can I use this tool to debug dinamic websites (for example, a spring application)? If not, is this intended support this feature in the future?

Good job!

Regards

Support for breaking before nested statements

Currently a debug statement is inserted only in front of the first of the nested statements, like this:

debugCode();
foo(bar(quux()));

It should be possible to use comma-separated groups of statements in the form of (funA(), funB()) for inserting debugging calls into nested code.

After this change, the generated code would look something like this instead:

(debugCode(), foo((debugCode(), bar((debugCode(), quux())))))

Handle XHR timeouts

Both the UI code and the mobile library (aardwolf.js) do not currently handle requests that have timed out very well

Rewriter fails on multi-line for-loops

Run the rewriter on this code sample:

for(var x=0;
    x < 5;
    x += 1) {
    console.log(x);
}

The output cannot be run. It appears that Aardwolf is attempting to insert a bunch of statements inside the for loop, which causes it to have too many semicolon-delimited segments in it. It looks like this:

try {  Aardwolf.pushStack("<toplevel>", "/test.js", '0');  var aardwolfEvalFunc = function(aardwolfEval) { return eval(aardwolfEval); };Aardwolf.updatePosition("/test.js", 1, false, aardwolfEvalFunc);for(var x=0;
    Aardwolf.updatePosition("/test.js", 2, false, aardwolfEvalFunc);x < 5;
Uncaught SyntaxError: Unexpected token ;
    Aardwolf.updatePosition("/test.js", 3, false, aardwolfEvalFunc);x += 1) {
    console.log(x);
}
} catch (aardwolfEx) { if (!aardwolfEx.rethrown) {  Aardwolf.reportException(aardwolfEx); } aardwolfEx.rethrown = true; throw aardwolfEx;} finally {  Aardwolf.popStack();}

Port issues

I run my code from different port and cannot serve js files from the same host as file server(8500). Is it possible to make it debug all other js files that come after aardwolf.js include?

path.existsSync is now called `fs.existsSync`.

I get this error trying to run it:

node app.js -h 192.168.1.13
path.existsSync is now called fs.existsSync.

events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:770:11)
at Server._listen2 (net.js:910:14)
at listen (net.js:937:10)
at Server.listen (net.js:994:9)
at dns.js:72:18
at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Help?

Update?

Also why not make it a npm install? I'd be glad to help.

Breakpoint request timeout exception

On OSX 10.9 with both Chrome and Firefox I received an error when attempt to set XMLHttpRequest's timeout was made. The specific code is in aardwolf.js around line 71:

if (path === '/breakpoint') {
    req.timeout = 0;
}

When I comment out the req.timeout = 0; is works correctly. I haven't tried other OS's or browsers.

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.