Cannot step into a callback function evaluated within a blackboxed script
Reported by
petton.n...@gmail.com,
Feb 21 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Steps to reproduce the problem:
1. Blackbox a script
2. Try to step into a call of a function from the blackboxed script. The function call contains a callback function.
Example with sugar.js blackboxed:
foo.filter(function(x) {
// I want the debugger to pause here when stepping
return bar(x);
})
I expect the implementation of `filter` to be blackboxed, but not the inner function.
What is the expected behavior?
The debugger should stop inside the callback
What went wrong?
The steps in the callback calls are ignored
Did this work before? N/A
Chrome version: 64.0.3282.140 Channel: stable
OS Version: Fedora 27
Flash Version:
,
Feb 23 2018
petton.nicolas@ - Thanks for filing the issue...!! Could you please provide a sample test file/url to test the issue from TE-end. This will help us in triaging the issue further. Thanks...!!
,
Mar 5 2018
,
Mar 6 2018
Could you provide more detailed example?
I tried with following snippet, with blackboxed blackbox.js:
<script>
var foo = {
filter: cb => cb()
};
//# sourceURL=blackbox.js
</script>
<script>
debugger;
foo.filter(() => 42);
</script>
StepInto successfully went to () => 42 function.
,
May 3 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by sindhu.chelamcherla@chromium.org
, Feb 21 2018