cancel
Showing results for 
Search instead for 
Did you mean: 

What tool to use for creating -Dbg.js and minified version of custom JS files?

Former Member
0 Kudos

Hi there,

SAPUI5 packages both minified JavaScript files and full source debug JavaScript files (with comments) into the release version. Depending on how you load the SAPUI5 library, the minified or the -Dbg.js files will be loaded.

It would be interesting to know, what tool you use to generate the minified files our of the -Dbg files. Do you use some kind of batch processing? Is it a freeware/open source tool?

Regards

Tobias

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

YUI Compressor, command line. refresh in eclipse , manual ADT upload after that

Former Member
0 Kudos

So there is no Eclipse plugin (from SAP) to automate this batch process without command line tools?

former_member182372
Active Contributor
0 Kudos

http://idiotechie.com/how-to-use-cmd-prompt-inside-eclipse/

You only have to Refresh manually and submit in ADT (if you use one)

Former Member
0 Kudos

I found a solution that works. I created a .bat file for processing every single file.

The problem is, that the files don't have a file mask of *-dbg.js

Some examples:

SampleFile-dbg.js

SampleView-dbg.controller.js

SampleView-dbg.view.js

SampleButtons-dbg.fragment.js

However, I found a solution that works for my workspace (no Eclipse).

Regards

Tobias

marcosandrade
Participant
0 Kudos

Hello could you please explain what is a -dbg.js file??

I have found these files in the standard fiori leave request and would like to know more about them.

can you help?

thanks in advance.

jmoors
Active Contributor
0 Kudos

the -dbg files are un-minified versions of the files, which makes debugging and reading the code easier.

Regards,

Jason

marcosandrade
Participant
0 Kudos

Hello Jason,

thank you for your reply,

but how can I use these files to debug?

for example I access the application and open chrome debug tool and what else??

I notice these files contains the same code as the original ones, but I could not go further than that.

looking forward to hearing from you.

jmoors
Active Contributor
0 Kudos

Hi Marcos,

You need to enable debug mode to use the -dbg files, you can either add sap-ui-debug= true to the url or set via the SAPUI5 diagnostics screen (CTRL+SHIFT+ALT+S) and click debug on under the Technical information tab.

https://sapui5.hana.ondemand.com/sdk/#docs/guide/c9b0f8cca852443f9b8d3bf8ba5626ab.html

https://sapui5.hana.ondemand.com/sdk/#docs/guide/6ec18e80b0ce47f290bc2645b0cc86e6.html

Regards,

Jason

marcosandrade
Participant
0 Kudos

Thank you Jason,

now it is very clear for me.

Answers (0)