المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Watch cannot find symbol $x



C++ Programming
09-25-2011, 03:52 AM
This is a C console application in VS2008.

I've got a script language similar to C but the host application has very few debug facilites. With a little modification I can convert the script to plain C and run it in a wrapper in a console app. In the script all variables must start $. If I try to watch a variable $x the watch window says:

$x CXX0017: Error: symbol "x" not found
If I #define $x x it finds it OK but I have to redefine all my variables this way in order to watch them.

Does anyone know why VS doesn't like the leading $ and whether it's possible to configure it to accept it as a normal symbol?

Thanks
A