diff --git a/examples/app.js b/examples/app.js
index <HASH>..<HASH> 100644
--- a/examples/app.js
+++ b/examples/app.js
@@ -6,7 +6,7 @@
 var sys = require('sys'),
     jade = require('./../lib/jade');
 
-jade.renderFile(__dirname + '/layout.jade', function(err, html){
+jade.renderFile(__dirname + '/layout.jade', { debug: true }, function(err, html){
     if (err) throw err;
     sys.puts(html);
 });
\ No newline at end of file
diff --git a/lib/jade.js b/lib/jade.js
index <HASH>..<HASH> 100644
--- a/lib/jade.js
+++ b/lib/jade.js
@@ -306,7 +306,7 @@ Parser.prototype = {
                     : buf + ';';
             case 'newline':
                 this.advance;
-                return this.parseExpr();
+                return '_.lineno = ' + this.lineno + ';' + this.parseExpr();
         }
     },
     
@@ -532,6 +532,10 @@ exports.render = function(str, options){
     function parse(){
         try {
             var parser = new Parser(str, filename);
+            if (options.debug) {
+                parser.debug();
+                parser = new Parser(str, filename);
+            }
             return parser.parse();
         } catch (err) {
             var lineno = parser.lineno,
Added "debug" option back