Skip to content

Debugging TypeScript #2

Closed
Closed

Description

@angelozerr

typescript.java uses JSDT Editor for the *.ts file. So It should be cool if we could debug TypeScript like TypEcs with:

Activity

  1. piotrtomiak commented on Feb 8, 2016

    @piotrtomiak
    Contributor

    @angelozerr we have the support scheduled for upcoming release. I will ensure that breakpoints work with your editor as well, for web and nodejs debugging. Is there any other target for TypeScript debugging?

  2. piotrtomiak commented on Feb 25, 2016

    @piotrtomiak
    Contributor

    @angelozerr do you have any update site from which I could install your TypeScript plugins? If I am correct and the files are opened in a regular JSDT editor, there should be no problem with putting breakpoints.

  3. angelozerr commented on Feb 25, 2016

    @angelozerr
    OwnerAuthor
  4. piotrtomiak commented on Feb 26, 2016

    @piotrtomiak
    Contributor

    Yeah, the update-site is not working. I've checked out projects from git and it works. We are going to release source map support in 1-2 weeks. To get workspace mapping working, you will need to setup sourceRoot property correctly:

    {
      "compilerOptions": {
          "target": "es5",
          "outDir": "target/js-build",
          "sourceMap": true,
          "sourceRoot": "workspace:test/src/main/typescript"
      },
      "files": [
          "src/main/typescript/demo.ts"
      ]
    }
  5. angelozerr commented on Feb 26, 2016

    @angelozerr
    OwnerAuthor

    Yeah, the update-site is not working.

    To be honnest with you, I have done that quicly without testing it. I have created the issue
    #7

    We are going to release source map support in 1-2 weeks.

    Very cool!

    To get workspace mapping working, you will need to setup sourceRoot property correctly:

    Is it a standard tsconfig.json property?

  6. piotrtomiak commented on Feb 26, 2016

    @piotrtomiak
    Contributor

    Is it a standard tsconfig.json property?

    Yes. There are several ways to get this working depending on where you keep sources and whether you use Externally Launched Web app or JEE Web App launching. There'll be a FAQ on that, so no worries :)

  7. angelozerr commented on Feb 26, 2016

    @angelozerr
    OwnerAuthor

    Thanks @piotrtomiak I'm a little exciting to play with your debugger :)

  8. piotrtomiak commented on Mar 23, 2016

    @piotrtomiak
    Contributor

    @angelozerr Webclipse 2016 CI 1 release contains the updated debugger, which has in-built support for source maps. It supports your TypeScript editor as well. Please refer to FAQ: https://www.genuitec.com/tech/javascript-debugging-with-source-maps/ on how to configure your project to have the best experience with source maps.

    Please let me know what do you think about the support!

  9. angelozerr commented on Apr 8, 2016

    @angelozerr
    OwnerAuthor

    @piotrtomiak I will test your work, but I don't know if it will work since now I have a custom TypeScriptEditor (not JSDT JavaEditor)

  10. piotrtomiak commented on Apr 8, 2016

    @piotrtomiak
    Contributor

    Yes, it won't work. I'll look it on Monday.

  11. angelozerr commented on Apr 8, 2016

    @angelozerr
    OwnerAuthor

    Argh -( sorry with this changes. Now I will not change TypeScript editor since I have a very well performance (because I don't create a JSDT DOM AST).

  12. piotrtomiak commented on Apr 11, 2016

    @piotrtomiak
    Contributor

    No problem, shouldn't be a big deal. Would you be able to create a snapshot build with the editor, so that I don't have to configure TypeScript.java build environment?

  13. angelozerr commented on Apr 11, 2016

    @angelozerr
    OwnerAuthor
  14. piotrtomiak commented on Apr 11, 2016

    @piotrtomiak
    Contributor

    Great, thanks!

  15. angelozerr commented on Apr 11, 2016

    @angelozerr
    OwnerAuthor

    Your are welcome. Just for your information, I have started to fill wiki to show implemented features of TypeScript Editor at https://github.com/angelozerr/typescript.java/wiki/Editor-Features (it's not finished).

    I will implement soon "Compilation" feature (like "compilation on save) and after I will create a release. Hope MyEclipse will be interested with typescript.java

  16. added a commit that references this issue on Apr 11, 2016
  17. piotrtomiak commented on Apr 11, 2016

    @piotrtomiak
    Contributor

    Hope MyEclipse will be interested with typescript.java

    We definitely are :) I hope we will be able to integrate support in a near future

  18. added a commit that references this issue on Apr 11, 2016
  19. angelozerr commented on Apr 18, 2016

    @angelozerr
    OwnerAuthor

    @piotrtomiak I'm really sorry, but I have changed content type :

    • ts.eclipse.ide.core.jsdt.tsSource to ts.eclipse.ide.core.tsSource
    • ts.eclipse.ide.core.jsdt.tsxSource to ts.eclipse.ide.core.tsxSource
    • ts.eclipse.ide.core.jsdt.jsxSource to ts.eclipse.ide.core.jsxSource

    I had no time to test it with Webclipse, hope it will not causes problem.

    We definitely are :) I hope we will be able to integrate support in a near future

    Great news!

  20. piotrtomiak commented on Apr 18, 2016

    @piotrtomiak
    Contributor

    I have changed content type

    That's not a problem for debugger setup. All the support is tied to editor's ID, so unless you change the id of editor, everything works.

  21. angelozerr commented on Apr 18, 2016

    @angelozerr
    OwnerAuthor

    That's not a problem for debugger setup.

    Cool! Thanks for your answer.

  22. angelozerr commented on May 17, 2016

    @angelozerr
    OwnerAuthor

    @piotrtomiak I have added a wilki section about TypeScript debugging https://github.com/angelozerr/typescript.java/wiki/TypeScript-Debugging

    If you have a link to Webclipse & TypeScript debugging, tell me, I will add it. It should be cool if we have a demo with this debugging feature.

  23. piotrtomiak commented on May 17, 2016

    @piotrtomiak
    Contributor

    Thanks! I'll be looking into creation of such a demo and I'll let you know once it's available. Were you able to test debugger?

  24. added this to the 1.3.0 milestone on Jul 5, 2017
  25. angelozerr commented on Jul 7, 2017

    @angelozerr
    OwnerAuthor

    Oxygen hosts now SourceMap support by integrating my PR https://bugs.eclipse.org/bugs/show_bug.cgi?id=487465

    It's not perfect (JSDT SourceMap support should be improved), but we can start to debug TypeScript.

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

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions