This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Provide an easy way to see non-minified remote JS file | ||
---|---|---|---|
Product: | web | Reporter: | Petr Jiricka <pjiricka> |
Component: | HTML Project | Assignee: | Tomas Mysik <tmysik> |
Status: | NEW --- | ||
Severity: | normal | CC: | dkonecny, markiewb |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Petr Jiricka
2013-08-16 16:02:33 UTC
I think this is a feature request for JS editor - an ability to reformat and beautify minimized JS code. Using an alternative URL without "[.-]min" can occasionally work but is not reliable enough. The main issue is that a mapping from minimized code to unminimized is needed otherwise features like JS debugger, Goto JS Declaration, etc. will stop working. And the mapping is known only if beautification was done directly by NB JS editor (or if project comes with a source map file mapping to uncompressed version of JS file). > Using an alternative URL without "[.-]min" can occasionally work but
> is not reliable enough.
Well, I would say formatting/beautifying can not work reliably either. Plus it will never restore code commments.
Wrt. JS debugger/Goto declaration - this is true, though I would say in some situations just seeing the original code is a value in itself, even without the debugger.
(In reply to David Konecny from comment #1) > I think this is a feature request for JS editor - an ability to reformat and > beautify minimized JS code. I don't think so. Obviously something different has been requested. While non-minified source has a value on its own (as also confirmed in comment #2) the formatted minified source is still pretty much useless - "formatted" does not mean "readable" due to syntactic constructs, variable naming etc. Taking over. |