     (do ;; bootclasspath workaround: http://dev.clojure.org/jira/browse/CLJ-673
       (require '[clojure walk repl])
       (require '[clojure.java io shell browse])
+      (when (:debug project)
+        (System/setProperty "clojure.debug" "true"))
       ;; need to at least pretend to return an exit code
       (try (eval form)
            0

    (if (= (get-os) :windows)
      (pr-str (pr-str form))
      (prn-str form))))

;; TODO: split this function up
(defn eval-in-project

          native-path (or (:native-path project)
                          (find-native-lib-path project))]
      (.setProject java lancet/ant-project)
      (add-system-property java :clojure.compile.path (:compile-path project))
      (when (:debug project)
        (add-system-property java :clojure.debug true))
      (when native-path
        (add-system-property
         java "java.library.path" (cond
                                   (= file (class native-path))
                                   (.getAbsolutePath native-path)
                                   (fn? native-path) (native-path)
                                   :default native-path)))
      (.setClasspath java (apply make-path (get-classpath project)))
      (.setFailonerror java true)
      (.setFork java true)
