Giter Club home page Giter Club logo

debug.elm-lang.org's Introduction

Elm Debugger - live online

The debugger was conceived and implemented by Laszlo Pandy. He introduced it during his talk at Elm Workshop 2013. Since then it has been adopted by the @elm-lang organization.

Nowadays, the concepts from the debugger live on in elm-reactor, which is part of the elm-platform, and is proving very valuable in everyday use.

You normally shouldn't need to build the debugger from this repo here anymore.

Further development happens in the elm-reactor repo. Please contribute there!

debug.elm-lang.org's People

Contributors

akkartik avatar deadfoxygrandpa avatar dobesv avatar evancz avatar ggreif avatar gozala avatar gunrein avatar hoosieree avatar ivanov avatar jsl avatar juhp avatar jvoigtlaender avatar kjgorman avatar koriroys avatar laszlopandy avatar madscoaducom avatar maxsnew avatar mgold avatar mhr avatar michaelbjames avatar miller-time avatar osnr avatar process-bot avatar pseudonom avatar relrod avatar thsoft avatar tomberek avatar trevorfancher avatar vbychkovsky avatar xash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debug.elm-lang.org's Issues

tracePath.canvas captures all clicks

To show the path of traced elements, a canvas is always placed over the entire viewer. For a program that uses mouse navigation, such as TextReverse.elm, this means it is impossible to move around.

Perhaps the canvas needs to be shown only when things are paused? I'm not sure if there's a way to get events to propagate correctly otherwise.

P.S. This is really a bug in the debugger branch of the compiler, but I don't want to clutter up that issue tracker.

Installation instructions do not work

I followed the installation instructions exactly, on two separate computers, and when it comes to running ./dist/build/elm-debugger/elm-debugger, I get this error message:

Initializing Server
elm-debugger: build: getDirectoryContents: does not exist (No such file or directory)

I'm not sure what directory it is referring to.

Instructions install Elm-0.12.3 and elm-debugger can't resolve dependencies

git clone https://github.com/elm-lang/Elm.git
cd Elm
git checkout debugger
cabal install

Results in Installed Elm-0.12.3

Then running:

git clone https://github.com/elm-lang/elm-debugger.git
cd elm-debugger
cabal configure
Resolving dependencies...
Configuring elm-debugger-0.1...
setup: At least the following dependencies are missing:
Elm >=0.13

Add Deprecated Message to README.md

I'd submit a pull request, but I'd have to send an agreement and honestly I don't think it'd be that helpful.

It would be nice if this repo mentioned, in the README.md, that it was deprecated/moved to elm-reactor. Or even just recommended npm install -g elm. http://debug.elm-lang.org/ still links to this repo in the first paragraph (at least).

For the record: As far as installing, you'll need to run cabal sandbox init and then cabal install 'Elm >= 0.13' (so it resolves the older dependencies correctly). Lastly, it'd need to use an older version of base which can't be installed by cabal anyway. The directions here reference the old Elm repository, and refers to itself as elm-debugger instead of debug.elm-lang.org.

Import/Export erroneously disabled

We just witnessed this error when trying to export debugger state:

screen shot 2018-03-02 at 8 24 45 pm

The type referenced is:

type TemplateMsg =
    EditField TaskFieldUpdate
  | DragTask Int
  | DropTask Int
  | UpdateEditableState Int (EditState, Maybe String, Maybe String)
  | Save

type TaskFieldUpdate =
    Title String
  | RequiresUpload Bool

type EditState =
    None
  | Editing
  | Saving

I suspect that one fo the types contained begins with Task, the Elm Debugger assumed it was a Task (incorrectly)

Update to Elm 0.15.1 (from 0.12)

I was playing with the online debugger and even the following simple example that works at http://elm-lang.org/try throws a bunch of errors:

import Graphics.Element exposing (show)
main = show (toString 42)


Parse error at (line 1, column 25):
unexpected "e"
expecting "{-", " ", newline, reserved word 'as' or "("

When I remove exposing it throws this:

import Graphics.Element (show)
main = show (toString 42)


Error on line 2, column 14 to 22:
Could not find variable 'toString'

because as I can see in the hint it tries to import toString from JSON.toString. If I click on the hint it points to http://library.elm-lang.org/catalog/evancz-Elm/0.12/Json#toString and I get Server not found message.

It does't work even when I try this:

import Basics
import Graphics.Element (show)
main = show (Basics.toString 42)


Error on line 3, column 14 to 29:
Could not find variable 'Basics.toString'.

I believe that http://elm-lang.org/try and http://debug.elm-lang.org/try should use the same (latest) version of Elm otherwise the debugger is not usable at all.

BTW: the Try it! buttons next to the examples at http://debug.elm-lang.org are are not clickable, but if you click on the Debug it takes you to http://debug.elm-lang.org/try where you can see the examples (written in Elm 0.12).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.