Hi,
I am using MyEclipse 7.0. I am having some problems in debugging javascript.
First I tried the “Mario” example provided in the javascript debugger tutorial. It seems to work for me. I can set break points and step into the code etc.
Next I created a new web project and created added javascript using DOJO. With dojo, I am not able to step into my custom classes I created using DOJO. It seems like I can step into code that was added using the <script> tag. For example if I include a javascript file like
<script type=”text/javascript” src=”js/myapp.js”>
</script>
I can set break points in the functions defined in myapp.js and step into the code. But I am not able to set break in my custom modules/classes. Also, I am not able to set break points in dojo code. For example,
<script type=”text/javascript”>
dojo.addOnLoad(function() {
onLoad();
});
</script>
If I set a break point on the line which invokes “onLoad”, the debugger does not hit that break point.
Am I missing any setup step to debug javascript w/ DOJO?
Thanks
Anand