添加断点时 JavaScript 文件被锁定
我使用的是 Visual Studio 2003。在调试模式下,每当我在 javascript (js) 文件中添加断点时,该文件就会被锁定,因此无法对其进行编辑。
关闭选项卡并重新打开它似乎可以解锁它。
我想知道的是:为什么会发生这种情况?是否有某种设置可以防止这种情况发生?
I'm using Visual Studio 2003. In debug mode, whenever I add a break point in my javascript (js) file, the file then becomes locked so that it can't be edited.
Closing the tab and reopening it seems to unlock it.
What I'd like to know is: why does this happen and is there some kind of setting that would prevent this from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这是设计使然。当您遇到断点时,Visual Studio 将显示实际文件的副本。调试期间无法编辑它。
I think this is by design. When you hit a breakpoint Visual Studio shows a copy of the actual file. You cannot edit it during debugging.
找到这个宏,它会自动关闭并重新打开您所在的js页面,并将光标移回您所在的行。希望它对某人有用。
Found this macro which automatically closes and reopens the js page you are on, and moves the cursor back to the line you are on. Hope it comes in useful to someone.