看看哪个行可以在firefox中调试

问题描述 投票:0回答:1

我有一个大约30行的脚本,我正在尝试在firefox中调试它,但是当我得到错误时它不会告诉我什么行得到错误?它说4:370,是否意味着在370行,但我只有30行?

ERROR: Execution of script 'test' failed! sessionStorage.getItem(...) is null userscript.html:4:370
javascript debugging firefox
1个回答
0
投票

该输出表示在userscript.html中第4行的第370列发生了错误。您可以通过单击控制台右侧的userscript.html:4:370来跟踪错误,它应该显示脚本和导致错误的行/命令。

© www.soinside.com 2019 - 2024. All rights reserved.