- This topic has 6 replies, 4 voices, and was last updated 16 years, 4 months ago by
support-joy.
-
AuthorPosts
-
Anand NarasimhanMemberHi,
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
AnandMarch 4, 2009 at 3:17 am #295492
support-joyMemberHi Anand,
I am not familiar with debugging dojo. Please refer to this sticky – https://www.genuitec.com/forums/topic/tip-debugging-code-downloaded-by-dojo/#post-252009, where user Nick recommends including browser_debug.js and calling writeIncludes()
March 4, 2009 at 9:56 am #295513
Anand NarasimhanMemberI saw that sticky. But there is a follow up post to that for which there was no reply.
I know this is an old thread, but I’m having trouble debugging using dojo 1.1.1.
There’s no dojo/src/browser_debug.js or dojo.hostenv.writeIncludes() anymore.
Have someone found a good solution to setting breakpoints in your own dojo widgets using the MyEclipse javascript debugger?March 4, 2009 at 9:58 am #295514
Anand NarasimhanMemberI saw that sticky. But there is a follow up post to that for which there was no reply.
I know this is an old thread, but I’m having trouble debugging using dojo 1.1.1.
There’s no dojo/src/browser_debug.js or dojo.hostenv.writeIncludes() anymore.
Have someone found a good solution to setting breakpoints in your own dojo widgets using the MyEclipse javascript debugger?Thanks
AnandMarch 4, 2009 at 10:24 am #295518
Loyal WaterMemberHi Anand,
I just checked with the dev team. JavaScript – DOJO debugging is not supported at the moment. Eval support is planned for future release. I will keep you updated.March 4, 2009 at 11:32 am #295527
jashyuMemberI also tried in vain to debug DOJO 1.2.3 and 1.3 Beta2 with MyEclipse 7.
Becasue the previous post from Nipun stated the above setup not supported, I then switch to use Safari 4 Beta’s debugger and profiler just so the check
There is another post stating Safari’s Webkit provides a debugger called Drosera and a set of tools that can help with Dojo debugging.
version:allhttp://dojotoolkit.org/support/faq/can-i-debug-safari
Can someone share more detail on what can be debugged and how to do it in Safari 4?
March 4, 2009 at 11:43 am #295528
support-joyMemberHi,
I would suggest you to cross post your dojo queries to dojo forums.
-
AuthorPosts