Skip to content

Commit

Permalink
v0.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
philoskim committed Oct 11, 2020
1 parent b9cc81f commit a218559
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 23 deletions.
9 changes: 6 additions & 3 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.7.6"]
[philoskim/debux "0.7.7"]
....

and this to your *production* dependencies.

[source]
....
[philoskim/debux-stubs "0.7.6"]
[philoskim/debux-stubs "0.7.7"]
....


Expand All @@ -66,6 +66,9 @@ NOTE: You can see _All change logs since v0.3.0_
https://github.com/philoskim/debux/tree/master/doc/change-logs.adoc[here].


* v0.7.7
** Bug fixed: link:https://github.com/philoskim/debux/pull/20[pull request] merged.
* v0.7.6
** Bumps `binaryage/devtools 1.0.2`
** Version matching with the fixed version of `philoskim/debux-stubs 0.7.6`
Expand Down Expand Up @@ -3388,7 +3391,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.7.6"]]
[philoskim/debux "0.7.7"]]
:plugins [[lein-cljsbuild "1.1.6"]
[lein-figwheel "0.5.10"]]
:source-paths ["src/clj"]
Expand Down
3 changes: 3 additions & 0 deletions doc/change-logs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
:source-highlighter: coderay
:sectnums:

* v0.7.7
** Bug fixed: link:https://github.com/philoskim/debux/pull/20[pull request] merged.
* v0.7.6
** Bumps `binaryage/devtools 1.0.2`
** Version matching with the fixed version of `philoskim/debux-stubs 0.7.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.7.6"]]
[philoskim/debux "0.7.7"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]]
:source-paths ["src/clj" "src/cljc"]
Expand Down
12 changes: 6 additions & 6 deletions examples/src/clj/examples/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

;; You should require dynamically the namespaces that you want to laod
;; if you want to use set-ns-blacklist! or set-ns-whitelist!.
(require 'examples.common)
(require 'examples.dbg)
(require 'examples.dbgn)
(require 'examples.options)
(require 'examples.etc)
;(require 'examples.common)
;(require 'examples.dbg)
;(require 'examples.dbgn)
;(require 'examples.options)
;(require 'examples.etc)
;(require 'examples.demo)
;(require 'examples.lab)
(require 'examples.lab)
)
10 changes: 10 additions & 0 deletions examples/src/clj/examples/etc.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@
(dbg-last_ 5 "after filter")
(map inc))


;;; set-source-info-mode!
(set-source-info-mode! false)

(dbg (+ 2 3))
(dbgn (* 10 (+ 2 3)))

(set-source-info-mode! true)
(dbg (+ 20 30))
(dbgn (* 10 (+ 2 3)))
8 changes: 0 additions & 8 deletions examples/src/clj/examples/lab.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,3 @@

(use 'debux.core)

(set-source-info-mode! false)

(dbg (+ 2 3))
(dbgn (* 10 (+ 2 3)))

(set-source-info-mode! true)
(dbg (+ 20 30))
(dbgn (* 10 (+ 2 3)))
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.7.6"
(defproject philoskim/debux "0.7.7"
: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
6 changes: 3 additions & 3 deletions src/debux/common/skip.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
(defn- process-for-binding [[binding form]]
(if (keyword? binding)
(case binding
:let `[~binding (ms/o-skip ~(->> (partition 2 form)
(mapcat process-let-binding)
vec))]
:let `[:let (ms/o-skip ~(->> (partition 2 form)
(mapcat process-let-binding)
vec))]
[binding form])
`[(ms/skip ~binding) ~form] ))

Expand Down
2 changes: 1 addition & 1 deletion src/debux/dbgn.clj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
recur)

((:fn-type (macro-types env)) sym)
(-> (z/replace loc (sk/insert-skip-in-fn node))
(-> (z/replace loc (ut/d (sk/insert-skip-in-fn node)))
z/next
recur)

Expand Down

0 comments on commit a218559

Please sign in to comment.