I would like to debug the javascript functions that are contained in the html content. However, when I set a break point on the function fReload, it never breaks.
- Code: Select all
<!DOCTYPE html>
<html>
<head>
<title>JS Test</title>
</head>
<body>
<p>JavaScript Test</p>
<button onclick="fReload()">Reload</button>
<button onclick="fCancel()">Cancel</button>
<script>
function fReload() {
window.unifaceTriggers('reloadPage');
}
function fCancel() {
window.unifaceTriggers('exitForm');
}
</script>
</body>
</html>
And if I create a separate js file for the jasvascript functions, then I can debug the functions. How does the DevTool debug js function exactly? Should they have to be in a js file separately to be debugable?
Thanks,
jiaojiao