I am testing Ionic 3, so far everything works as it should. I would wish to debug the TS code on the ionic lab so i added the next configuration in package.json:
"config": {
"ionic_source_map": "source-map"
}
After this, i was able to see the code and debug it(in chrome devTools), but when i execute the same test on the phone i am not able to see the .Ts files and debug it. Anyone has any idea which configuration or how to make them also visible on the phone?
I also faced with this problem, but solution is simple :) Run command:
So, when inspecting device/virtual device with
chrome://inspect
, you can debug typescript files, set breakpoints etc as in web app.You can use Chrome Inspector to debug Ionic app from the phone.
Prerequisites:
Debugging: