Samsung / netcoredbg

NetCoreDbg is a managed code debugger with MI interface for CoreCLR.
MIT License
780 stars 101 forks source link

Can't access Chinese variable #10

Closed nluyan closed 5 years ago

nluyan commented 5 years ago

if Chinese named variable in code, it will not access the value by use -var-create command in GDB.

ayuckhulk commented 5 years ago

@nluyan Hello, sorry for late response. Could you please specify more details:

  1. On which platform do you run the netcoredbg binary?
  2. Please provide code example with Chinese named variable which does not work.

Thanks!

nluyan commented 5 years ago

Thanks for reply.

I run netcoredbg on Windows 10 Chinese version. and .net core 2.2 this is my test code:

using System;

namespace ConsoleApp2 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); int a = 32; double b = 63.35; string 测试 = "电视机"; //Chinese named variable DateTime time = DateTime.Now; Console.WriteLine("End"); } } }

debug command: -file-exec-and-symbols dotnet -exec-arguments ~\ConsoleApp2\ConsoleApp2\bin\Debug\netcoreapp2.2\ConsoleApp2.dll -break-insert -f Program.cs:14 -exec-run -exec-continue -var-create - * "测试"

result: image

It looks like an encoding problem, often happens on GB2312 <==> UTF8

ayuckhulk commented 5 years ago

@nluyan Please try the latest build and see if it works for your case.

jeanjvv12 commented 5 years ago

cordova plugin add instabug-cordova

ayuckhulk commented 5 years ago

I close this issue since there is no more feedback.

jeanjvv12 commented 5 years ago

Yes binary is ok but .txt and some word docs have a bug. Utf8 Not your fault . Md5 ssh is older but tokens and dockers two step verification is pretty tight locks .