rDr4g0n/JsDebuggr

Lines with "//" in a string are mistaken for comments, and the debugger statement is placed before the //

Closed this issue · 0 comments

When a breakpoint is added, the plugin attempts to make sure that if a comment is present on the line, the debugger statement is placed before the comment. However, it incorrectly assumed that any "//" is a comment including the // present in a URL. the unexpected result would affect a line like this:

    var url = "http://www.google.com"

by turning it to this:

    var url = "http:; debugger//www.google.com"