Franz Krauth
Posts: 0
Joined: Thu Nov 22, 2012 11:23 am

Missing line breaks in js for debugging...

Is there any reason why my js comes without line breaks (testing in a browser)? I have a very hard time to debug, plus, normal single line comments // don't work... or is there a 'debug' setting somewhere?

Cheers...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Missing line breaks in js for debugging...

Can you post what JavaScript you included and how it looks in the browser?

Franz Krauth
Posts: 0
Joined: Thu Nov 22, 2012 11:23 am

Missing line breaks in js for debugging...

Any js I have comes without nl... I thought you optimise them out... good idea for production... not so good for debugging...
... screenshots (working on Linux btw):

JS in Editor:
Image

JS in Debugger (Chrome):
Image

I know I can just use the beautifier... but the debugger reports line one no matter where it stops...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Missing line breaks in js for debugging...

Thanks, we'll get it fixed.

Return to “Issues”