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:

-
are you using mixed code from swift and Objective-C?Reinier Melian– Reinier Melian2017-09-12 09:22:48 +00:00Commented Sep 12, 2017 at 9:22
-
yes, I'm using code from objective-c with bridging headerbinsnoel– binsnoel2017-09-12 09:23:29 +00:00Commented 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 issueReinier Melian– Reinier Melian2017-09-12 09:26:26 +00:00Commented Sep 12, 2017 at 9:26
-
ok i will get back after i try thisbinsnoel– binsnoel2017-09-12 09:31:41 +00:00Commented Sep 12, 2017 at 9:31
-
Is the debug data missing all the time, or only some function calls?TheBasicMind– TheBasicMind2017-09-12 09:33:47 +00:00Commented Sep 12, 2017 at 9:33
|
Show 1 more comment
2 Answers
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
3 Comments
binsnoel
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.
yogesh wadhwa
import specific file in Appdelegate.
binsnoel
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.

