The debugger does not seem to be able to work with code that has been read in with eval.
We have the same problem with FireFox but in Internet Explorer they have solved this with the Microsoft Script editor.
Could something please be done towards this?
We do support debugging eval code, you can step into the eval call and debut the parsed script. This is just a bug with the debugger keyword.
Curious, i cannot immediately see why the debugger keyword would not work inside the eval :-/
Oliver: Do you mean that you need a test case or that you can't immediately see the root of the problem?
I meant i can't immediately see the source of the problem -- i'm assuming eval("debugger;") will be sufficient to test?
I can't reproduce this -- can anyone else?
In Bindows with a late webkit version the debugger keyword breakpoints the code at the correct location and I can step but I am in the wrong file (I'm in the launcher html file) and I cant see the code that is actually executing. So I did some initial work on trying to repro this outside of Bindows - unsuccessful so far. I will continue and get back to you with more research as soon as possible.
I have tried to reproduce this in a clean scenario but I am unable to.
Is it ok if I send you a link via email with code that reproduces this problem?
@Johan: sure, but i can't guarantee i'll get to this in the immediate future
No worries. I have emailed a download link and instructions.
(In reply to comment #10)
> No worries. I have emailed a download link and instructions.
I tried a simple test of this and was able to get the debugger to stop with the debugger "command" in an eval'd string.
Where's the test case? Or since this is >1 year old, maybe there was a problem but it's since been fixed?
Please reopen if this still happens with a test case.