Skip to content

Commit

Permalink
v0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
philoskim committed Jun 3, 2020
1 parent c5a3774 commit 34367a7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 30 deletions.
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ To include `debux` in your project for development, simply add the following to

[source]
....
[philoskim/debux "0.6.7"]
[philoskim/debux "0.6.8"]
....

and this to your *production* dependencies.

[source]
....
[philoskim/debux-stubs "0.6.7"]
[philoskim/debux-stubs "0.6.8"]
....


Expand All @@ -65,7 +65,7 @@ and this to your *production* dependencies.
NOTE: You can see _All change logs since v0.3.0_
https://github.com/philoskim/debux/tree/master/doc/change-logs.adoc[here].

* v0.6.7
* v0.6.8
** Bug fixed and code cleaned up
* v0.6.6
Expand Down Expand Up @@ -3049,7 +3049,7 @@ an example about running the link:https://github.com/bhauman/lein-figwheel[figwh
(defproject examples "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.10.238"]
[philoskim/debux "0.6.7"]]
[philoskim/debux "0.6.8"]]
:plugins [[lein-cljsbuild "1.1.6"]
[lein-figwheel "0.5.10"]]
:source-paths ["src/clj"]
Expand Down
2 changes: 1 addition & 1 deletion doc/change-logs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:source-highlighter: coderay
:sectnums:

* v0.6.7
* v0.6.8
** Bug fixed and code cleaned up
* v0.6.6
Expand Down
2 changes: 1 addition & 1 deletion examples/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.10.238"]
[org.clojure/core.async "0.3.465"]
[philoskim/debux "0.6.7"]]
[philoskim/debux "0.6.8"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]]
:source-paths ["src/clj" "src/cljc"]
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject philoskim/debux "0.6.7"
(defproject philoskim/debux "0.6.8"
:description "A trace-based debugging library for Clojure and ClojureScript"
:url "https://github.com/philoskim/debux"
:license {:name "Eclipse Public License - v 1.0"
Expand Down
12 changes: 0 additions & 12 deletions src/debux/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@


;;; debugging APIs
(defmacro dbg0 [form & opts]
(let [ns (str *ns*)
line (:line (meta &form))
opts' (ut/prepend-src-info opts ns line)]
`(if (ut/debug-enabled? ~ns)
(dbg/dbg ~form ~(ut/parse-opts opts'))
~form)))

(defmacro dbg [form & opts]
(let [ns (str *ns*)
line (:line (meta &form))
Expand Down Expand Up @@ -61,7 +53,3 @@
(defmacro show-macros
([] `(mt/show-macros))
([macro-type] `(mt/show-macros ~macro-type)))

(let [x 1 y 2]
(dbgn (->> 10 inc) :l)
(+ x y))
11 changes: 0 additions & 11 deletions src/debux/cs/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@


;;; debugging APIs
(defmacro dbg0 [form & opts]
(let [ns (str *ns*)
line (:line (meta &form))
local-ks (keys (:locals &env))
opts' (ut/prepend-src-info opts ns line)]
`(if (ut/debug-enabled? ~ns)
(debux.dbg/dbg ~form
(zipmap '~local-ks [~@local-ks])
~(ut/parse-opts opts'))
~form)))

(defmacro dbg [form & opts]
(let [ns (str *ns*)
line (:line (meta &form))
Expand Down

0 comments on commit 34367a7

Please sign in to comment.