Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/f425a96c5b3ebe7743cd to your computer and use it in GitHub Desktop.
Save mfikes/f425a96c5b3ebe7743cd to your computer and use it in GitHub Desktop.
iOS stack traces take 2

I edited some local source at /Users/mfikes/Documents/Projects/hello-ambly/src/hello_ambly/core.cljs

(ns hello-ambly.core)

(defn i-m-gonna-throw [] 
  (ffirst 1))

(defn make-my-day []
  (i-m-gonna-throw))

Then in the REPL into iOS (over Wi-Fi!), got accurate stacktraces referring to source on my Mac's filesystem:

ClojureScript:cljs.user> (require 'hello-ambly.core :reload)

ClojureScript:cljs.user> (hello-ambly.core/make-my-day)
Error: 1 is not ISeqable
	 cljs.core/seq (jar:file:/Users/mfikes/.m2/repository/org/clojure/clojurescript/0.0-2843/clojurescript-0.0-2843.jar!/cljs/core.cljs:727:13)
	 cljs.core/first (jar:file:/Users/mfikes/.m2/repository/org/clojure/clojurescript/0.0-2843/clojurescript-0.0-2843.jar!/cljs/core.cljs:736:7)
	 cljs.core/ffirst (jar:file:/Users/mfikes/.m2/repository/org/clojure/clojurescript/0.0-2843/clojurescript-0.0-2843.jar!/cljs/core.cljs:1155:3)
	 hello-ambly.core/i-m-gonna-throw (file:/Users/mfikes/Documents/Projects/hello-ambly/src/hello_ambly/core.cljs:4:3)
	 hello-ambly.core/make-my-day (file:/Users/mfikes/Documents/Projects/hello-ambly/src/hello_ambly/core.cljs:7:3)
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment