Open
Bug 1096736
Opened 10 years ago
Updated 2 years ago
The frontend shouldn't do any code-deleting optimizations because it makes the debugger unable to set breakpoints on that code
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: fitzgen, Unassigned)
References
(Blocks 2 open bugs)
Details
No breakpoints because no offsets.
Things like "if (true) \n..." get optimized, resulting in not being able to break on the conditional.
Reporter | ||
Updated•10 years ago
|
Blocks: dbg-breakpoint
Comment 1•9 years ago
|
||
Quickest fix: In js/src/frontend/FoldConstants.cpp, in the second switch statement, try deleting
the code in "case PNK_IF:" and "case PNK_CONDITIONAL:".
Comment 2•9 years ago
|
||
Er, in the function Fold().
Comment 4•6 years ago
|
||
Yeah, it is. If I open the page below in the debugger, breakpoints can only be set on the bar() call, and not the 'if (true)' or the baz() call.
<script>
if (true) {
bar();
} else {
baz();
}
</script>
Flags: needinfo?(bhackett1024)
Updated•6 years ago
|
Priority: -- → P3
Updated•4 years ago
|
Blocks: js-debugger
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•