-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to debug a Typescript source ? #661
Comments
Also if you have an Angular project you will have tsconfig.json on a folder above the main.ts file. So WWD will ask to create a a new or skip it. |
Hi @Lucas3oo What am I missing? Is it possible to get a zip containing a minimal project with all the settings needed for debugging? |
I have only tried it with Angular projects. Then under "Run->Debug configurations..." I will add "Chrome debug" and in the "Browser" tab I select "Chrome". Chrome will start and I can see that Eclipse is sending commands to Chrome about setting breakpoints. But when the code execute in Chrome it will never stop at the breakpoints. But your issues I haven't seen. |
The issue about breakpoint not being hit when debugging Angular applications is now tracked in #735 |
@vincenzocaselli maybe this problem was fixed by #1306 |
I think #1174 fixes it: debugging typescript is just a matter of doing Right Click > Debug As > Node application on a .ts file. |
I am using WWD regularly in Web/Angular project and I'm very happy with it.
However, for a pure didactic approach, I would like to be able to open a simple .ts file and debug it in Eclipse.
After all this is exactly what is represented in the image at the WWD homepage (github.com/eclipse/wildwebdeveloper), isn't it?
Well, I just don't understand how to do it.
I also tried with VS Code and there it is straightforward: Run, Start debugging (or just F5), Node.js and debugging starts.
If in Eclipse+WWD I try to right click on a .ts file and select Debug as, Node program, I get a pop up error that asks to set a tsconfig.json or just starting debugging. The latest option gives another error, while for the former I don't know how to fill that file.
Is it possible to get a straightforward TS debugging experience with Eclipse? Is there some tutorial somewhere?
Thank you very much
Vincenzo
The text was updated successfully, but these errors were encountered: