Can't see wxString values in Debugger
Posted: Tue Jan 16, 2018 4:51 pm
Windows 10 (64-bit) / Codelite 11.0.7 / wxWidgets 3.1 / TDM-GCC-4.9.2
Occasionally, the debugger doesn't show the values of wxString objects. I'll attach a screenshot once I know how to
I'll try and show an example of how it appears...
Debugger window (the window with tabs "Locals", "Watches", "Callstack" etc) displays the following
This doesn't happen with every wxString, and I haven't found a way to guarantee reproducing the issue either.
Sadly I can't readily upload a sample project to illustrate the issue, as small projects don't seem to suffer from this issue, and the project I'm working in is too large with too many dependencies to be easily uploaded.
If anyone has any suggestions, they'd be much appreciated!
Thanks, Colin
Occasionally, the debugger doesn't show the values of wxString objects. I'll attach a screenshot once I know how to
I'll try and show an example of how it appears...
Code: Select all
const wxString PhotoFullFileName = m_PhotoFileList.GetFullFileName (m_CurrentPhotoId);
// loading via stream is *marginally* quicker than from file
[b]>>> Breakpoint here >>>[/b] wxFileInputStream FileInputStream (PhotoFullFileName);
m_CurrentImage.LoadFile (FileInputStream);
if (m_CurrentImage.IsOk())
{
- Name Value
PhotoFullFileName {...}
This doesn't happen with every wxString, and I haven't found a way to guarantee reproducing the issue either.
Sadly I can't readily upload a sample project to illustrate the issue, as small projects don't seem to suffer from this issue, and the project I'm working in is too large with too many dependencies to be easily uploaded.
If anyone has any suggestions, they'd be much appreciated!
Thanks, Colin