Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Rocco De Angelis
    @rdeangelis83

    In the last days I spend some time to think about, how the experience of debugging with the SuperDevMode can be improved.
    I personally don't use source-map and I prefer to debug the JavaScript code in Chrome DevTools. For a better understanding/mapping of the code I use the -XmethodNameDisplayMode
    ABBREVIATED compiler option. The main reason why I don't use source-map to debug the Java code, is because it is not possible to evaluate expressions in the debugger/console/devtool(please correct if this is wrong).
    By using some devtoolsFormatters I personally think that the debug experience is quite okay but it could be better. Some of my colleagues complains that the debug experience (also if it was sometime slow) much better with the old DevMode.
    They prefer to debug the Java-Code and they miss the possibility to evaluate expressions by using source-map.

    In our company we primary use Jetbrains IDEA aus IDE. And by debugging in IDEA the devtoolsFormatters can not be used.
    It would be nice to hear what is your preferred why to debug your GWT code?

    Colin Alworth
    @niloc132
    i also prefer not to use sourcemaps, but i compile to PRETTY and just use that
    you can use the dev tools eval thing, but you have to guess the right names, since theyve been mangled to prevent java hiding breaking js
    Rocco De Angelis
    @rdeangelis83
    @niloc132 do you use some devtoolsFormatters?
    Colin Alworth
    @niloc132
    no, just raw js
    frankly i dont even use sdm all that often
    depends on what i'm working on though
    Or Goshen
    @Oberonc
    I have a weird behavior with chrome and elemento
    I wrote a class that has "implements IsElement<HTMLElement>"
    inside I have this line:
    .add(button().css("ui", "button", "primary", "fluid")
    .attr("type", "button")
    .on(click, event -> onClickedLogin())
    .textContent("Login"))
    this function (onClickedLogin()) is called when the generated code is run on a Firefox browser, but it isnt called when it is run on an eclipse browser
    how can this be ?
    ie, clicking the button in Firefox works, but not in Chrome
    Justin Hickman
    @jhickman
    I'm assuming 'click' is from EventType.click ?
    Justin Hickman
    @jhickman
    for the most part, doing 'on' is going to addEventListener directly on the element
    try other events and log, such as mouse over, mouse in/out, etc. just to see if it's getting ANY events
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Are you doing DomGlobal.body.innerHtml=... anywhere in the application?
    Or Goshen
    @Oberonc
    not using elemntal2 directly
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Still are you doing body.innerHtml?
    Or Goshen
    @Oberonc
    not that I know of (elemento does it indirectly ?)
    btw GWT 2.9.0
    elemento 1.0.3
    no events on that button get triggered
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    No elemento does not
    Or Goshen
    @Oberonc
    no mouseup/mousedown/keypresse
    this is a login window with 2 text inputs
    .on(keypress, event -> GWT.log("keypress")) in the inputs shows nothing in the console as well
    as if no events work in chrome
    or even registered
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Does the log works outside the event?
    Or Goshen
    @Oberonc
    yes
    I added GWT.log("enter class") in the class constructor where I create the root HTMLElement
    it shows
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    You can inspect what events are registered on the element fro dev tools..do you see the event
    Or Goshen
    @Oberonc
    in chrome I see this:
    how can I tell in chrome if there is an event attached to this button ?
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    On the right there is a tab for listeners, inspect it
    the button is the login button
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Can you find your listener?
    Or Goshen
    @Oberonc
    EventType.java that is mentioned is a java file from elemento
    hmm
    so a handler is attached
    but doesnt call my code
    Ahmad K. Bawaneh
    @vegegoku:matrix.org
    [m]
    Try this
    Open localhost:9876 then hit clear button ..then back to your application
    Or Goshen
    @Oberonc
    same behaviour
    I tried also mvn clean before