Giter Club home page Giter Club logo

Comments (6)

Foxandxss avatar Foxandxss commented on May 10, 2024

What you mean with debug in here? Because build will create your production build and with debug I think about development.

from angular-webpack.

kuncevic avatar kuncevic commented on May 10, 2024

Ah OK my bad so how would you debug anyway using vscode? any other best approach? I just wasn't being able to produce build anyway to check my unlucky guess due to #93

from angular-webpack.

Foxandxss avatar Foxandxss commented on May 10, 2024

Wrong person to ask, I survive with console.logs and that is definitely not the way to go :/

Better if you ask in SO or other sites, because I cannot be of any help.

from angular-webpack.

kuncevic avatar kuncevic commented on May 10, 2024

Get bored by console.log..

Actually I was trying to use this thing https://github.com/Microsoft/vscode-chrome-debug but no luck. I think because of webpack. Haven't dig much in to that after all.

Then looked in to this one http://schempy.com/2016/01/19/angular2_webpack_typescript/ but not working for me when trying to set breakpoints in chrome as mentioned in article.

UPDATE. Actually the second option is working. I was doing the full page refresh at first which is didn't triggered my break points in chrome dev tools for some reason. But after app is loaded and I tried to click on my route component I set breakpoints on - in such case all my ts breakpoints was getting hit.

Navigate http://localhost:8080 in a browser (I use chrome). Once the page is loaded open devtools and click on the Sources tab. Drill down on the list item labeled webpack on the left-side. You’ll notice there are the original typescript files! Click on one and check for yourself. You can set breakpoints and start digging in! Here is what your screen should look like:

image

image

from angular-webpack.

Foxandxss avatar Foxandxss commented on May 10, 2024

Will take a peek at both and if I get something interesting, I could update the README here.

from angular-webpack.

kuncevic avatar kuncevic commented on May 10, 2024

Cool. Checkout my updated update above :/

from angular-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.