On Sun, Nov 4, 2012 at 2:24 AM, Justin Lebar <justin.le...@gmail.com> wrote:

> > Even worse, in Visual Studio 2010 (not sure about 2012), you can't set a
> > breakpoint on an anonymous-namespace symbol *at all*. And we can't submit
> > patches to fix that, either :-).
>
> Not even by opening the file and clicking to the left of the line?!
>

That works, of course. But it doesn't always do what you want. You might
have multiple symbols defined on a line, for example, or want to set a
breakpoint on an implicit constructor. Or just have trouble finding the
right file containing the definition.

Since you can't refer to anonymous-namespace symbols at all in the Visual
Studio debugger, it also means you can't evaluate an expression containing
a cast to an anonymous-namespace class. That can also be a real pain, and
there's no workaround AFAIK.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to