Skip to content

No Documentation of how to Debug Javascript in a Spring Boot Application #1379

Open

Description

@3ueb

We develop a Spring Boot App. Most of the front end we develop with Thymeleaf. We use Windows 10/11. Now, we have a more significant growing part that we develop with JavaScript.
I tested it with the WWD snapshot from Friday (27.09), I believe, and the Version from the Eclipse marketplace.
To debug the Javascript part, I set up different configurations.

grafik

When I start the debug session, the Javascript Source Code is not found, and the program does not stop on the breakpoints. Does that work at all?

When I start to debug from the HTML File and not from the URL, it works.

A similar test works with VS-Code when I use URL-Base Adress, but I prefer one IDE.

Activity

  1. 3ueb commented on Oct 29, 2023

    @3ueb
    Author

    Here is the setup in VSCode, I open the static Folter.
    grafik

    I was hopping that the new Webroot option from WWD solve the problem.

  2. mickaelistria commented on Oct 30, 2023

    @mickaelistria
    Contributor

    It could be that the webroot is not properly set by Wild Web Developer to latest debug adapter.
    Please check https://github.com/microsoft/vscode-js-debug/blob/main/OPTIONS.md and the code of ChromeAttachDebugDelegate in this repo, it looks like the webroot is never set here (and that of course can cause issue).

  3. 3ueb commented on Nov 4, 2023

    @3ueb
    Author

    So far, what I found out is that these options are useless for Chrome Debug and the options only for Firefox. Someone may know more about the options.
    grafik

    The "Chrome Debug" Configuration is not using ChromeAttachDebugDelegate; it only uses classes in the package org.eclipse.wildwebdeveloper.debug.node

    ChromeAttachDebugDelegate is part of the package org.eclipse.wildwebdeveloper.debug.chrome.

  4. 3ueb commented on Nov 4, 2023

    @3ueb
    Author

    What does that mean "Active Member Companies: " RedHat? Is there a programmer from RedHat, who fix this?

    Or do I have to do it if I want to use it in any way?

  5. akurtakov commented on Nov 5, 2023

    @akurtakov
    Contributor

    What does that mean "Active Member Companies: " RedHat? Is there a programmer from RedHat, who fix this?

    It means there are active committers affiliated with Red Hat. It doesn't put any implications that any of the committers will work on a fix for a given issue.

    Or do I have to do it if I want to use it in any way?

    This is always the best action. Most of the time committers want to fix everything but being spread between dozen(s) of projects (some of which like Platform, LSP4E, TM4E, M2E being building blocks for this one) means there are always more important issues than this one and we quite likely will not get to such an issue any time soon (if at all).

  6. mickaelistria commented on Nov 6, 2023

    @mickaelistria
    Contributor

    @3ueb if you can manage to submit a PR that fixes this issue, it would be more than welcome and most effective as we always try to prioritize community reviews; while we cannot currently prioritize own development of a fix here at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions