<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - JavaScript Debugger - Comments</title>
 <link>http://community.activestate.com/forum-topic/javascript-debugger</link>
 <description>Comments for &quot;JavaScript Debugger&quot;</description>
 <language>en</language>
<item>
 <title>Also having problems getting debugger to work</title>
 <link>http://community.activestate.com/forum-topic/javascript-debugger#comment-3692</link>
 <description>&lt;p&gt;I am running Windows XP, Firefox 2.0.0.11, Komodo 4.2.1&lt;/p&gt;
&lt;p&gt;My file is located at D:\Web\AjaxForm.html and Firefox is loading the file via &lt;a href=&quot;http://localhost/AjaxForm.html&quot; title=&quot;http://localhost/AjaxForm.html&quot;&gt;http://localhost/AjaxForm.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I setup a Mapped URI using the above two and it was accepted fine (saved to global preferences) but when I return to this dialog it leaves the URI field blank so I&#039;m not sure if it is saving this information.&lt;/p&gt;
&lt;p&gt;Komodo reports 1 current session and 1 current connection. Selecting &quot;Connect to Komodo Debugger&quot; in Firefox simply toggles the icon status from &quot;Disconnected&quot; to &quot;Stopped&quot;. I can&#039;t get any other state. The Total Connections in Komod is sitting at 3 and doesn&#039;t move any more. I restarted Firefox and Komodo and tried again with same results.&lt;/p&gt;
&lt;p&gt;Adding a &quot;debugger;&quot; statement had no effect. I ensured my code is being executed by inserting an error next to that statement and it was correctly reported by Firefox.&lt;/p&gt;
&lt;p&gt;I checked the port specified in Komodo so it matches Firefox and I tried both 9000 and 9050 to make sure the port wasn&#039;t the problem. I turned off my firewall and virus checker too.&lt;/p&gt;
&lt;p&gt;I did get one debugging session to work when I first installed Komodo and Firefox but since then a number of attempts have failed.&lt;/p&gt;
</description>
 <pubDate>Mon, 17 Dec 2007 23:44:48 -0800</pubDate>
 <dc:creator>SaltyFoam</dc:creator>
 <guid isPermaLink="false">comment 3692 at http://community.activestate.com</guid>
</item>
<item>
 <title>A better way of getting breakpoints to work</title>
 <link>http://community.activestate.com/forum-topic/javascript-debugger#comment-1838</link>
 <description>&lt;p&gt;The debugger works better when the JavaScript files are served via an&lt;br /&gt;
&lt;a href=&quot;http://localhost&quot; title=&quot;http://localhost&quot;&gt;http://localhost&lt;/a&gt; URL rather than a &lt;a href=&quot;///&quot; title=&quot;///&quot;&gt;file:///&lt;/a&gt; one, and with the correct&lt;br /&gt;
URI mapping in place.&lt;/p&gt;
&lt;p&gt;Clear all the breakpoints on the JS files.&lt;/p&gt;
&lt;p&gt;Add a temporary debugger statement to the file you want to break in.&lt;/p&gt;
&lt;p&gt;When you&#039;re stopped, set other breakpoints in that file.  The debugger&lt;br /&gt;
should now honor them, even on subsequent sessions after you remove&lt;br /&gt;
the debugger statement.&lt;/p&gt;
&lt;p&gt;Eval&#039;ed code is breakable, but is messier.&lt;/p&gt;
&lt;p&gt;We&#039;ll have a look at the tutorial instructions.&lt;/p&gt;
</description>
 <pubDate>Mon, 28 May 2007 11:50:47 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 1838 at http://community.activestate.com</guid>
</item>
<item>
 <title>I am trying to get</title>
 <link>http://community.activestate.com/forum-topic/javascript-debugger#comment-1824</link>
 <description>&lt;p&gt;I am trying to get JavaScript debugger working in 4.1, and also without success. I disabled FireBug; and (I hope) followed all the instructions. When I click &quot;Connect to Komod Debugger&quot; button in FireFox toolbar - the debugger gets engaged. That is, there is a message &quot;Debugger is running...&quot;, and Debug-&amp;gt;Listener Status shows a connection (and also increments the number of connections). However, I tried &quot;Break on next Java Statement&quot;, and also tried putting debugger; statement in the code, and put breakpoints on the statements in the tutorial, but the breakpoint never kicks in, and the debugger never takes control.&lt;/p&gt;
&lt;p&gt;Any other suggestions?&lt;/p&gt;
&lt;p&gt;Thanks in advance. Debugger is listening on port 9000, and FWIW, PHP debugger works perfectly fine&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Update: It seems to be working if I am running the web page from localhost. However, the tutorial instructs to show the page in the browser; which loads the file from the file system. In such case (from the file system) I can&#039;t make the debugger to work. With localhost and Mapped URI the debugger comes up. However, I can&#039;t make the code break at *my* breakpoints. But that&#039;s, of course, is another problem.&lt;/p&gt;
&lt;p&gt;Additionally, javascript tutorial has some other &quot;bugs&quot;. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;YUI files are in the wrong directories (different from the ones main files refers to)&lt;/li&gt;
&lt;li&gt;the text for buttons doesn&#039;t match the actual (for example, the help text refers to &quot;Tools | Komodo JavaScript Debugger | Enable Debugging&quot; - and the actual menu text says &quot;Connect to Komodo Debugger&quot;; same for the button)&lt;/li&gt;
&lt;li&gt;I can&#039;t make the debugger break at my breakpoints&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So, while the debugger interface seems a little bit nicer than FireBug - it just doesn&#039;t seem to be worth the effort.&lt;/p&gt;
</description>
 <pubDate>Sat, 26 May 2007 22:26:51 -0700</pubDate>
 <dc:creator>virshu</dc:creator>
 <guid isPermaLink="false">comment 1824 at http://community.activestate.com</guid>
</item>
<item>
 <title>Some suggestions...</title>
 <link>http://community.activestate.com/forum-topic/javascript-debugger#comment-1222</link>
 <description>&lt;p&gt;Are you using the URI mapping preference to map files from the&lt;br /&gt;
web server space to the file system?  This is usually how&lt;br /&gt;
Komodo handles breakpoints.&lt;/p&gt;
&lt;p&gt;What happens if you add the statement&lt;/p&gt;
&lt;p&gt;  debugger;&lt;/p&gt;
&lt;p&gt;to a JavaScript function that you know is being invoked?&lt;br /&gt;
This statement should always trigger a break event.&lt;/p&gt;
&lt;p&gt;Does the &quot;break at next statement&quot; flag button work?&lt;/p&gt;
&lt;p&gt;Finally, what kind of JavaScript are you running?  While&lt;br /&gt;
we&#039;ve successfully debugged bookmarklets as well as traditional&lt;br /&gt;
code, long eval strings can be hard to walk through.&lt;/p&gt;
</description>
 <pubDate>Wed, 04 Apr 2007 09:44:45 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 1222 at http://community.activestate.com</guid>
</item>
<item>
 <title>JavaScript Debugger</title>
 <link>http://community.activestate.com/forum-topic/javascript-debugger</link>
 <description>&lt;p&gt;I have just installed Komodo IDE 4.0 because I was very happy with Kommodo Edit AND desperately in need for a JavaScript debugger.&lt;/p&gt;
&lt;p&gt;Unfortunately I cannot get it to work. I have already inactivated FireBugs and restartet FireFox after that, and I have also successfully &quot;connected&quot;, but nothing happens at all.&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/javascript-debugger#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-support-0">Komodo support</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Wed, 04 Apr 2007 02:16:10 -0700</pubDate>
 <dc:creator>kai</dc:creator>
 <guid isPermaLink="false">709 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
