简体   繁体   English

断点和更改在 Chrome DevTools 中停止工作

[英]Breakpoints and changes stopped working in Chrome DevTools

I have a weird problem that I hope someone encountered, because I don't know if I can provide much detail about it (sorry).我有一个奇怪的问题,我希望有人遇到过,因为我不知道我是否可以提供更多关于它的细节(抱歉)。 I'm working with TiddlyWiki as a local HTML file.我正在使用 TiddlyWiki 作为本地 HTML 文件。 It's a wiki that is entirely in one HTML file.这是一个完全在一个 HTML 文件中的 wiki。 It has javascript plugins, also in the file.它有 javascript 个插件,也在文件中。 When it loads it sets them up as separate scripts in devtools当它加载时,它在 devtools 中将它们设置为单独的脚本在此处输入图像描述 . .

I want to modify one of these on the fly.我想即时修改其中一个。 What I used to do was open the script (it opens in its own tab), edit it, save, and the changes would take effect until reload.我以前做的是打开脚本(它在自己的选项卡中打开),编辑它,保存,并且更改将在重新加载之前生效。

All of a sudden, this stopped working.突然间,这停止了工作。 Not only my changes don't take effect, but breakpoints in the script, which used to work fine no longer work.不仅我的更改没有生效,而且脚本中的断点以前工作正常也不再起作用。 If I make the change while in a breakpoint, and save, the browser jumps to the script that calls the method in the changed script.如果我在断点处进行更改并保存,浏览器将跳转到调用已更改脚本中的方法的脚本。 The breakpoint no longer works and I can't step into any method in the modified script.断点不再起作用,我无法进入修改后的脚本中的任何方法。 The modifications don't take effect.修改不生效。

I tried using local overrides, adding, removing, resetting, deleting the files.我尝试使用本地覆盖、添加、删除、重置、删除文件。 Everything I could think of.我能想到的一切。 Note that I didn't need these in the past (that is, until a few days ago).请注意,我过去不需要这些(也就是说,直到几天前)。

Turns out this was probably due to something with encoding.事实证明这可能是由于编码引起的。 I use vi to copy&paste the text and then save as ascii, then copied that to the wiki and everything started working as expected我使用 vi 复制和粘贴文本,然后另存为 ascii,然后将其复制到 wiki,一切都按预期开始工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM