Hello, I'm a clojure newbie, with little java experience. I've been skimming the net the last few days trying to solve my problem. Could anyone help?
Here it is: I followed the instructions given by Rich on how to use JSwat with Clojure. The only difference is I'm using JSwat 4.5, the latest official release, running on Mac OS X 10.6. (Note that I had the same problem on 10.5). I also read the extra info gathered on this group in the "Debugging with JSwat" thread. Problem: - Can't get the line numbers to show up on .clj files in JSwat (even after selecting the menu option...) - Can't set any line breakpoint on sessions attached to Clojure REPL. What I can do: - run Clojure in CLI or using VimClojure, no problem. - can attach to remote session on JSwat and Pause/Continue the main thread (I can see the effect on the REPL in a Terminal session). - can break on exceptions Do I have to compile in order to be able to debug my clj files? I naively thought you could work in User space and in one clj file and reload and run in JSwat, as Rich is hinting in his debugging page. Like I said, I'm not deeply familiar with Java (yet), so I thought this could be a classpath problem. I set my CLASSPATH environment variable to contain: - clojure installation dir with.jar - clojure/src - clojure-contrib.jar (not using it in my code yet) -clojure-contrib/src - vimclojure stuff - . (current dir) - ./classes (even though I have not compiled yet). If I try to execute a newline of code in the loaded clj file in JSwat, here's the error I get: VM suspended for session Session 1 Error in breakpoint: Line brain.clj:69 There is no line number information for user$eval__69 at com.bluemarsh.jswat.core.breakpoint.DefaultLineBreakpoint.resolveReference (DefaultLineBreakpoint.java:201) at com.bluemarsh.jswat.core.breakpoint.DefaultResolvableBreakpoint.resolveEagerly (DefaultResolvableBreakpoint.java:257) at com.bluemarsh.jswat.core.breakpoint.DefaultResolvableBreakpoint.connected (DefaultResolvableBreakpoint.java:82) at com.bluemarsh.jswat.core.session.SessionEvent$Type $2.fireEvent(SessionEvent.java:59) at com.bluemarsh.jswat.core.session.AbstractSession.addSessionListener (AbstractSession.java:74) at com.bluemarsh.jswat.core.breakpoint.DefaultBreakpointManager.addBreakpoint (DefaultBreakpointManager.java:70) at com.bluemarsh.jswat.ui.actions.RunToCursorAction.performAction (RunToCursorAction.java:101) at org.openide.util.actions.CallableSystemAction$1.run (CallableSystemAction.java:118) at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction (ActionsBridge.java:77) at org.openide.util.actions.CallableSystemAction.actionPerformed (CallableSystemAction.java:114) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:389) at com.apple.laf.ScreenMenuItem.actionPerformed (ScreenMenuItem.java:95) at java.awt.MenuItem.processActionEvent(MenuItem.java:627) at java.awt.MenuItem.processEvent(MenuItem.java:586) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java: 317) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java: 305) at java.awt.EventQueue.dispatchEvent(EventQueue.java:638) at org.netbeans.core.TimableEventQueue.dispatchEvent (TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java: 122) Caused by: com.sun.jdi.AbsentInformationException at com.sun.tools.jdi.ReferenceTypeImpl.locationsOfLine (ReferenceTypeImpl.java:904) at com.bluemarsh.jswat.core.breakpoint.DefaultLineBreakpoint.resolveReference (DefaultLineBreakpoint.java:189) ... 27 more What am I missing here? There's got to be something obvious that I over-looked! I would greatly appreciate it if you could help! Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---