Using Safari Web Inspector while running Appium tests

I want to use Safari Web Inspector with mobile Safari while running appium tests (possible problems with browser events), but connection is unavailable while Appium session is active. Is there a way to run both at the same time? I tried changing the wda port in capabilities, but it didn’t help. Or there is another way to debug mobile safari?