Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Bug when viewing log file
Bug when viewing log file [message #42194] Thu, 27 February 2014 13:30
steffen is currently offline  steffen
Messages: 38
Registered: May 2007
Location: Denmark
Member

Hi,

I had an obscure debugging session trying to figure out a problem with a dynamically build string.

LOG(s) showed the string correct, but a label in my program showed only parts of it. (QTF string with table formatting, but with empty field)
It turns out my string contained a '\0' after the first part, but it was not shown in the LOG file.

String s("Hello World");
s.Set(5, '\0');
LOG(s);

Inspecting the log file in theide shows: HelloWorld
Inspecting the log file with gedit shows: Hello\00World.
Inspecting s in debugger shows: "Hello

Now I guess the missing terminating " is an indication that it is not showing the end of the string, but in my case with a long QTF formatted string, I actually thought it was a limitation in the debug view.

It could have saved me a few hours if the log file showed the "non readable characters", maybe as escaped hex like gedit.
Previous Topic: Possible bug with symlinks on linux ?
Next Topic: Problem with encoding in Consol
Goto Forum:
  


Current Time: Thu Mar 28 20:49:33 CET 2024

Total time taken to generate the page: 0.00821 seconds