These are chat archives for ractivejs/ractive

16th
Nov 2018
Cerem Cem ASLAN
@ceremcem
Nov 16 2018 17:59
how do you handle this kind of problems: Playground (explanation in the link)
  1. We need to execute dynamically created codes
  2. Exception shouldn't break our app (thus we need to use try/catch)
  3. We should be able to debug exceptions (where try/catch prevents us to do so)
Open [Chromium] debugger and run the code. You'll see that debugger will hit the correct position if function is simply called, but you'll have no idea which line you are having problem if you use try/catch version
Cerem Cem ASLAN
@ceremcem
Nov 16 2018 18:15
Update: Playground
Chris Reeves
@evs-chris
Nov 16 2018 18:20
I usually use the pause on all exceptions option, which will stop you in the function and again in the catch where it throws
Cerem Cem ASLAN
@ceremcem
Nov 16 2018 18:20
me too, but it doesn't help in this case
am I missing something? o_O
Chris Reeves
@evs-chris
Nov 16 2018 18:20
there's a little circle with a pause symbol in it on the debugger pane
if it's blue, there's a checkbox to enable pausing on caught exceptions
Cerem Cem ASLAN
@ceremcem
Nov 16 2018 18:21
image.png
Chris Reeves
@evs-chris
Nov 16 2018 18:22
the box isn't checked there
it should work, or at least it has for me in the past
Cerem Cem ASLAN
@ceremcem
Nov 16 2018 18:24
oh, yes, it works
silly me
Chris Reeves
@evs-chris
Nov 16 2018 18:30
yeah, that's a really confusing ui
I still trip on it occasionally