MyEclipse: Javascript debugging with dynamically created html file?

swett - Apr 16, 2006 - 10:40 AM
Post subject: Javascript debugging with dynamically created html file?
My Java servlet uses a template engine to build an html file on the fly. A portion of the html file (located within the
Code:
<head>
tag) follows:

Code:
<script type="text/javascript" src="./Javascript/TeacherSubmitForm.js">
</script>

<script type="text/javascript">
function submitForm(buttonPressed,district,school,teacher) {
  submitFormExt(buttonPressed,district,school,teacher);
}
</script



My external Javascript file, TeacherSubmitForm.js, looks like the following:

Code:
function submitFormExt(buttonPressed,district,school,teacher) {
  listForm.hiddenButtonClicked.value=buttonPressed;
  listForm.hiddenDistrict.value=district;
  listForm.hiddenSchool.value=school;
  listForm.hiddenTeacher.value=teacher;
  listForm.submit();
}



The Launch URL that I've specified in my Debug As... definition is:

Code:
http://localhost:5019/DemoSystem/DemoServlet?appPkg=Standard&appName=TeacherList&dbProfile=sample&action=WriteScreen



The debugging doesn't seem to work because I can't figure out where to go to set a breakpoint. Am I correct in thinking that it is not yet possible to use Javascript debugging in dynamically created HTML files?

If it is already possible, can you provide any hints/instructions? I've already read the QuickStart documentation on the subject.

I'm using Eclipse 3.1 and MyEclipse 4.1.

Thank you.
support-greg - Apr 16, 2006 - 05:24 PM
Post subject:
You are correct. In the current version, you can't set breakpoints for dynamically created HTML/Javascript. However, we realize that this is a valid use-case of JavaScript debugging and we plan to support this in the future. Thanks for the feedback and sorry for the inconveinence.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits