Draw.io:如何调试未缩小的js代码? [英] Draw.io : How can I debug unminified js code?

查看:256
本文介绍了Draw.io:如何调试未缩小的js代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从github存储库下载了draw.io源文件,并尝试对导入功能进行一些细微更改,但是所有源文件都已缩小(尤其是app.min.js). 所以我的问题是:有没有办法用未压缩的源调试代码? 另外,我尝试在查询字符串中传递param dev = 1,但它给出了一些错误,并且无法加载.

I downloaded draw.io source files from the github repository and tried to make some minor changes to the import function, but all the sources are minified (especially app.min.js). So my question is this: is there any way to debug the code with the unminified sources? Also I tried to pass inside the query string the param dev=1, but it gives some errors and doesn't manage to load.

我已经看过帖子 Draw.io-是否有非最小化的源?但我不知道如何构建draw.io.

I already saw the post Draw.io — Is there non-minified source? but I don't know how to build draw.io.

推荐答案

在我的观点中,我发现了一个奇怪的解决方案. 我将 build.xml 文件替换为所有带有<concat><jscomp>指令,因此结果文件不是压缩文件,而仅仅是所有源文件的合并.

I've found, in my opinon, a strange solution. I took build.xml file and replaced all the <jscomp> instructions with <concat> so the result file isn't a minification but just a merge of all source files.

这种方法效果很好,可以解决我的问题,但我不知道是否有一种更简单,更正确的方法.

This method works just fine and it solves my problem but i don't know if there is a simpler and more right method.

这篇关于Draw.io:如何调试未缩小的js代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆