Angular
Debugging Typescript in Album Viewer.
Gravatar is a globally recognized avatar based on your email address. Debugging Typescript in Album Viewer.
  Daniel
  All
  Nov 9, 2018 @ 09:51am

I downloaded the Albumviewer and it's really slick. But when I try to debug the Typescript by putting a breakpoint in the vs code, I get nothing. If I look for the ts files in the brower devtools, I see nothing. Anyone have any ideas? Tis a mystery.

Thanks

Gravatar is a globally recognized avatar based on your email address. re: Debugging Typescript in Album Viewer.
  Rick Strahl
  Daniel
  Nov 9, 2018 @ 05:29pm

If you want to step through the code, use the browser developer tools. Add a debugger statement in to the code, then make sure browser dev tools are active (F12 in most browsers), then access navigate to the code in question.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Debugging Typescript in Album Viewer.
  Daniel
  Rick Strahl
  Nov 11, 2018 @ 06:18pm

Thanks Rick! But that does not seem to work. I added the debugger statement and that did not work. I also commented out all of the code in the ts files and everything still worked. I renamed the app directory to appx and the albumviewer still works when I ran it. And as I was saying I do not see the ts files with I use the chrome dev tools. Very interesting. I'll figure something out.

Gravatar is a globally recognized avatar based on your email address. re: Debugging Typescript in Album Viewer.
  Rick Strahl
  Daniel
  Nov 11, 2018 @ 11:32pm

Angular applications can't be just changed. They have to be transpiled - in this case using the Angular CLI.

Take a look at the repository - there are instructions on how to run the application.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Debugging Typescript in Album Viewer.
  Daniel
  Rick Strahl
  Nov 12, 2018 @ 02:49pm

Found it. Sorry about that, there is a read_me.html which I thought was supposed to be the help file for the solution. The readme.md is much more fitting. Thank you!

© 1996-2024