对于我的 c 项目,我有一些代码正在构建为 dll,在该 dll 中我有一个要导出的变量
#ifdef UI_EXPORT
#define UI_API __declspec(dllexport)
#else
#define UI_API __declspec(dllimport)
#endif
//.....
extern UI_API ui_state _ui_state;
//In implementation file within dll project
ui_state _ui_state;
运行我的 exe 时一切都编译并且似乎链接正常但我似乎无法从我的 exe 中调试导出的 _ui_state 变量。我需要执行额外的步骤来调试此符号吗?如果我要进入调用我的 dll 的函数,那么我可以调试变量