On Thu, May 24, 2012 at 12:22 PM, mobiDevJC <
mobi...@gmail.com> wrote:
> Sorry for the typo. I got to editing my post and left out an important bit.
>
>
> I tried saving the file. On a few occasions (maybe 10% of the time), it did
> appear to save the file and breakpoints reappeared and were again editable.
>
>
> However, on many occasions, I was not able to save the file. I would hit
> ctrl-s and encountered an odd error message in the console. Uncaught Script
> not found. This error would show up repeatedly and once it occurred, I was
> not able to save the file. This seems like it could be a separate, albeit
> possibly related bug.
This is also my experience. See below.
Note one workaround seems to work for some cases: resume from your
breakpoint then save again. This fails if you have syntax errors.
>
> This bug seems related to this issue and possibly to the breakpoint problem
> as the reporter mentions he's unable to set breakpoints once he encounters
> the problem.
>
>
http://code.google.com/p/chromium/issues/detail?id=92134
>
> One thing to note is that I have only encountered the Uncaught Script not
> found error when trying to save. It does not necessarily appear when I
> encounter the breakpoint issue I originally reported.
What is happening here is that your modified source is pushed back
into the V8 engine and it chokes on it. The exact reason for choking
varies, but the user experience is as you describe: the edit fails
with a mystery message.
We are working on this problem in two ways.
First, I am proposing a change in the edit user experience to separate
"edit" from "live-edit":
https://code.google.com/p/chromium/issues/detail?id=123242
The main effect would be that saving-while-on-a-breakpoint will always
work. Your changes will be saved to disk first and the LiveEdit work
will happen when you resume from the breakpoint. That way if the
LiveEdit fails, you just reload and get the new edits that way. As
LiveEdit gets better, the experience will get faster.
Second, we are working to improve the cases the LiveEdit can handle.
The general problem is a tough one. Key to success will be test cases
to cover the common use cases. I've entered some:
http://code.google.com/p/chromium/issues/list?can=2&q=johnjbarton+liveedit
Especially valuable are small test files and baby-step-by-baby-step
instructions to reproduce the issue.
jjb