/
issue3639.html
49 lines (48 loc) · 1.97 KB
/
issue3639.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Issue 3639: Have a way to see the return value of a function when debugging</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="https://getfirebug.com/tests/head/_common/testcase.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript">
function test()
{
var a=5;
debugger;
return a*5;
}
window.addEventListener("load", function() {
test();
}, false);
</script>
</head>
<body>
<header>
<h1><a href="http://code.google.com/p/fbug/issues/detail?id=3639">Issue 3639</a>: Have a way to see the return value of a function when debugging</h1>
</header>
<div>
<section id="description">
<h3>Steps to reproduce</h3>
<ol>
<li>Open Firebug</li>
<li>Enable and switch to the <em>Script</em> panel</li>
<li>
Reload the page<br/>
<span class="ok">⇒ Script should halt at the <code>debugger;</code> statement</span>
</li>
<li>Press <code class="key">F10</code> to step over two times</li>
</ol>
<h3>Observed result</h3>
<ul>
<li>Script execution is halted at line 29 (outside of <code>test()</code>)</li>
</ul>
<h3>Expected result</h3>
<ul>
<li>Script execution should be halted at line 26 (the closing brace of <code>test()</code>)</li>
<li><em>Watch</em> side panel should show the return value of <code>test()</code></li>
</ul>
</section>
<footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
</div>
</body>
</html>