Unable to debug Ionic 2 app (breakpoints are not working)

Hi everyone, im new on Ionic development. I have seen a lot of tutorials and topics on how debug ionic app on ios emulator, but it doesnt work for me.

This is my launch.json

{
“name”: “Run iOS on simulator”,
“cwd”: “${cwd}”,
“type”: “cordova”,
“request”: “launch”,
“platform”: “ios”,
“target”: “emulator”,
“sourceMaps”: true
},
{
“name”: “Attach to running iOS on simulator”,
“cwd”: “${cwd}”,
“type”: “cordova”,
“request”: “attach”,
“platform”: “ios”,
“target”: “emulator”,
“port”: 9221,
“sourceMaps”: true
}

When I run the ios simulator, I open terminal and run ios_webkit_debug_proxy:

Listing devices on :9221
Connected :9224 to SIMULATOR (SIMULATOR)

So I change the port on the json “Attach to running iOS on simulator” process and try to attach the process.
I can see the application logs, but the aplications breakpoints doens`t work.

Thanks. :slight_smile:

If you don’t get any better answers, you can try connecting an actual device over USB and attach to the running process from Safari on the deployment machine. I have set breakpoints that way before.