Ionic debugging is not working in iOS devices


#1

Hi,
Ionic 3 debugging is not working in my iOS devices, it shows only .js files, it doesn’t show any .ts file how to enable .ts debugging file.


#2

Hi
put one debug point or debugger() in any relevant place… and inspect chrome or safari it will be hit the debugger .

If you are working with ios device enable Safari web inspector and check same with safari.


#3

but it did not show any .ts (typescript) files then how can i put debug point


#4

Use some editor/IDE example in Login page after login before navigating to some other page put one console.log(“Login success”)or debugger point . then run the same on device/browser
then run the application .
you will be able to inspect the application from chrome/safari browser.


#5

where can i put debugging point in .js file or somewhere?


#6

ts and .js files are different… If you are using javascript code uses .js file.else if you are using typescript code uses .ts file.


#7

i need to put debug in typescript code


#8

Did you see main.js file somewhere in your folder ( in safari browser) and I hope you are building dev version of app


#9

ya i got main.js file but there is no .ts files


#10

That is fine, you will find your code in that file.
So once you build your app it will compile all the .ts files and create single main.js file from where you can debug the app (place break points).
I hope this will help you.


#11

Thanks for your response, i hope it will helpful for me.


#12