Parcel: Elm --debug flag for time travelling debugger

Created on 3 Oct 2018  路  7Comments  路  Source: parcel-bundler/parcel

馃檵 feature request

I'd like to be able to see time travelling debugger when using Elm in combination with Parcel. In plain elm it's achieved by passing --debug flag to compiler.

馃拋 Possible Solution

  1. It can be enabled by default for all development build unless there is some use case where it's not needed.
  2. Or one of Parcel flags can be used to enable this feature

solution 1 - I can do PR for.
Solution 2 I need some help to figure out which flags can be used.

Feature

Most helpful comment

@kyasu1 just submitted quick PR to disable until compiler issue is resolved.

The --debug issue has been resolved with the release of Elm 0.19.1.

All 7 comments

@Maxim-Filimonov this sounds great, are you planning to reopen that PR?

At some point - next week is quite full on. Looking for a new job :\
Will try to have a look at this week in November. Feel free to reopen and apply the same changes I did

Adding options.debug = !options.optimize;
before generating compiled output in parse() function works for me.

image

Merged 馃巻

I believe there is a bug in the current elm compiler with --debug option as follows.

https://github.com/elm/compiler/issues/1851

This bug sometimes prevents compiling non-trivial apps. So until when it is resolved by them, could you disable this functionality ?

Or is it possible switch it with a command line option ?

@kyasu1 just submitted quick PR to disable until compiler issue is resolved.

@kyasu1 just submitted quick PR to disable until compiler issue is resolved.

The --debug issue has been resolved with the release of Elm 0.19.1.

Was this page helpful?
0 / 5 - 0 ratings