2

I cannot see the value of variables while debugging my app. I have already checked the build settings and optimization values are set to none, also my Scheme. See screenshots below: enter image description here

enter image description here

enter image description here

enter image description here

6
  • are you using mixed code from swift and Objective-C? Commented Sep 12, 2017 at 9:22
  • yes, I'm using code from objective-c with bridging header Commented Sep 12, 2017 at 9:23
  • maybe you are including wrongly your headers, I was working in a project with the same issue and only reviewing all includes solves the issue Commented Sep 12, 2017 at 9:26
  • ok i will get back after i try this Commented Sep 12, 2017 at 9:31
  • Is the debug data missing all the time, or only some function calls? Commented Sep 12, 2017 at 9:33

2 Answers 2

2

The idea is to remove things from your bridging-header one by one and see if you can narrow down the issue.

I think I read somewhere that if a library is causing many issues behind the scenes, this can stop your debugger working.

In my case I was using Facebook Tweaks library

Once I got rid of it, I got my debugging back.

and in my AppDelegate.swift

import Tweaks into the AppDelegate file.

 import Tweaks
Sign up to request clarification or add additional context in comments.

3 Comments

assuming the bridging-header is the culprit, how do i fix the issues in my briding-header though? It still compiles and i need it.
import specific file in Appdelegate.
Hi, I figured it out via removing things one by one. turns out i have a typedef unsigned short WORD; typedef char* LPCSTR; typedef unsigned char * LPBYTE; typedef unsigned long long ULONG; typedef unsigned char BYTE; in my bridging header file and it causes this issue. i don't know why though.
0

Moved RxSwift library from the Swift package Dependencies to CocoaPod

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.