Thanks for your help - I found that I was exceeding the recursion
limit in CodedInputStream. I was able to instantiate my own
CodedInputStream and increase the limit, but it would be nice if some
sort of error was printed when the limit is exceeded.

On Mon, Dec 28, 2009 at 9:52 AM, Kenton Varda <ken...@google.com> wrote:
> ./configure CXXFLAGS='-O0 -ggdb3'
>
> Instead of stepping through the protobuf code, though, I'd recommend is that
> you add some code to your own project to read the bytes directly from the
> istream and then verify that they are the same bytes that were originally
> produced by the protobuf serializer.  You'll probably find that they are
> different in some way, which will point you towards the problem.
> On Sat, Dec 26, 2009 at 12:35 PM, Thomas Johnson
> <thomas.j.john...@gmail.com> wrote:
>>
>> I've got a protobuf file that for some reason can't be loaded using
>> ParseFromIStream. The function just returns false, without printing
>> any error, and seems to deserialize only part of the message. How can
>> I compile a debug version of protobuf (i.e. -O0 -ggdb3) to step
>> through the code and find out what's going on?
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To post to this group, send email to proto...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> protobuf+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/protobuf?hl=en.
>>
>>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to