How to work with javascript? [message #91703] |
Fri, 23 January 2009 20:04  |
Eclipse User |
|
|
|
Hi, I am using PDT for Drupal development. I can edit, debug.
However, I have two problems:
1. Javascript show a lot of warnings and errors. For example,
"function $ is undefined". "$" from jQuery and the jQuery library is
inside the project. How can I make PDT understand javascript?
2. In debugging, very consistently after the first two times going
through the debugger, subsequenctly I always get
"Error: A Runtime Error has occured. Do you want to debug? Line: 1
Error: Syntax error"
or
"Error: A Runtime Error has occured. Do you want to debug? Line: 132
Error: 'jQuery' is undefined"
Pressing "No" would get rid of these error dialogs and allow me to
continue to debug. However, everytime I hit another breakpoint, I
would get these errors again.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09930 seconds