有没有一种方法可以在Chrome Developer工具中评估源映射中的变量? [英] Is there a way to evaluate variable in source map inside the Chrome Developer tools?
问题描述
我正在使用Chrome中的SuperDevMode调试GWT应用.它带给我的是在devtools中对Java源映射的访问.
I'm debugging a GWT app using SuperDevMode in Chrome. What it gives me is the access to Java source maps in devtools.
我的问题是,当我调试代码时,我想评估一些变量.
My problem is that when I'm debugging the code I would like to evaluate some of the variables.
我的问题是-是否可以从源映射中评估变量?
My question is - is it possible to evaluate a variable from the source map?
否则-是否可以从源地图导航到已编译的javascript代码?
If not - is it possible to navigate from the source map to the compiled javascript code?
推荐答案
我能接近的是存储为全局变量"(Chrome 75):
Closest I can get to this is "Store as global variable" (Chrome 75):
它将在控制台中被命名为temp1
之类的名称.然后,您可以像其他任何变量一样与它进行交互.如果有更好的方法,我很想知道.
It will get named something like temp1
in the console. You can then interact with it like any other variable. If there's a better way I'd love to know about it.
这篇关于有没有一种方法可以在Chrome Developer工具中评估源映射中的变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!