Fork me on GitHub
#cljsrn
<
2017-07-21
>
Oleh K.15:07:17

I've made GUI lighttable plugin for re-natal. It is tested only on Mac and have issues but generally works. https://github.com/okilimnik/renatal-lt-plugin

jeaye19:07:32

Has anyone seen any work being done for getting actual stack traces from cljsrn errors?

jeaye19:07:51

I s'pose one does get useful ones occasionally, but often the errors happen in MessageQueue or JSTimers or something else unhelpful.

mfikes19:07:54

@jeaye This might be useful: Enable “Debug JS Remotely,” (have things run in Chrome), and then if you have enabled source maps (in re-natal, done using enable-source-maps option), you can get it to stop at the point you throw, say an ex-info, and it will show your ClojureScript source in Chrome.

jeaye19:07:30

@mfikes Hm, so I typically run in the Android emulator. You're saying I can still do that, but via Chrome?

mfikes19:07:13

I assume so. The idea is that the JavaScript is decoupled from the native layer via the bridge, and if you bring up what is equivalent to iOS’s “shake gesture” on Android, I would expect you go get a menu that lets you activate “Debug JS Remotely”. For the iOS simulator, it transparently shifts its execution into Chrome and it talks to the simulator over the wire.

jeaye19:07:53

I hope this works for Chromium as well. Do you know?

jeaye19:07:16

I would install Chromium to give this a shot, but not Chrome.

mfikes19:07:17

I don’t know what Chromium is

mfikes19:07:56

They mention something about Android at the bottom of https://facebook.github.io/react-native/docs/debugging.html

jeaye19:07:21

Chromium is the open source browser upon which Chrome is built, without all the proprietary Google bits. 🙂 I can look up the source map stuff for it though. Thanks for the info.

jeaye23:07:43

@mfikes That's been very helpful, thanks again.

jeaye23:07:11

Figured out it's figwheel causing some odd issue https://upload.jeaye.com/tmp/figwheel-error.png