facebook

Javascript debugging with dynamically created html file?

  1. MyEclipse Archived
  2.  > 
  3. Web 2.0 / AJAX
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #250544 Reply

    swett
    Member

    My Java servlet uses a template engine to build an html file on the fly. A portion of the html file (located within the

    <head>

    tag) follows:

    <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:

    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:

    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.

    #250559 Reply

    Greg
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Javascript debugging with dynamically created html file?

You must be logged in to post in the forum log in