inspectdev / inspect-issues

Issue tracker for Inspect
22 stars 2 forks source link

breakpoint not pausing execution on windows (debugging iOS) #171

Closed Wandang closed 1 year ago

Wandang commented 1 year ago

Hello,

I tried this tool today with the following setup:

Host machine: Windows Target device: iPhone (latest iOS) App: Angular Webapp/PWA

I can inspect the safari website inside inspect.dev on my windows machine. However, I am unable to use breakpoints. The sourcemaps seem to be working, since setting a breakpoint in .js files will automatically teleport me to the correct .ts file and line. But neither adding a breakpoint via UI, nor adding a breakpoint by adding debugger; will halt the execution inside a function.

inspect_debug_problem

The only breakpoint that was working for me so far is a DOM breakpoint that listens for changes in the subtree. Editing JS files will nearly crash inspect.dev while editing TS files seems to be fine (but adding debugger; doesn't result in anything)

Maybe someone could assist in this regard? Thanks in advance

Wandang commented 1 year ago

It was my mistake. I was debugging the wrong code location.