eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
190 stars 71 forks source link

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

Open 3ueb opened 1 year ago

3ueb commented 1 year ago

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.

3ueb commented 1 year ago

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.

mickaelistria commented 1 year ago

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).

3ueb commented 1 year ago

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.

3ueb commented 1 year ago

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?

akurtakov commented 1 year ago

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).

mickaelistria commented 1 year ago

@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.