Does "Log" truncate?

SteveBee

Member
Licensed User
Longtime User
In debugging, I am writing a longish string (100s of chars) to the log:
i.e. Log("s=" & s1)

But when I view the line in the Log tab, it is severely truncated!

My problem/error, or B4a?

Steve
:sign0104:
 

moster67

Expert
Licensed User
Longtime User
Yes, it is truncated although I don't know how many characters it can hold.

I also fell into that trap being sure there was something wrong with my code.
 
Upvote 0

SteveBee

Member
Licensed User
Longtime User
Erel,

A great addition to the IDE would be the ability to Copy a variable value when stopped at a breakpoint (via Ctrl-C/right-mouse)... like Visual Studio - I use it all the time, esp. for long strings.

Even better would be to be able to edit it, too (again like VS)

In the interim, I'll use your suggestion to write it out to a file... Tx
 
Upvote 0

SteveBee

Member
Licensed User
Longtime User
Problem - I"m writing the string, but I can't find the resulting file!

I'm currently only using an emulator, so I assume that the written file is somewhere beneath either the application folders or the andriod sdk fofders... but a full search of my computer has produced nothing!

Where do the File: directories map to (on the connected PC) when using an emulator?

e.g. File.WriteString(File.DirInternal , "X.xml", s1)
File.WriteString(File.DirDefaultExternal, "X.xml", s1)
File.WriteString(File.DirRootExternal, "X.xml", s1)
 
Upvote 0
Top