Author Topic: Debugger failed when the directory name is in Chinese.  (Read 4020 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
Debugger failed when the directory name is in Chinese.
« on: February 19, 2012, 01:39:46 pm »
I copied the debugger windows message , I think the warning message in the log shows that the directory name is wrong/

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: F:\小学学习资料\English\English\
Adding source dir: F:\小学学习资料\English\English\
Adding file: F:\小学学习资料\English\English\bin\Debug\English.exe
Changing directory to: F:/小学学习资料/English/English/.
Starting debugger: D:\CodeBlocks\MingGW\bin\gdb.exe -nx -fullname  -quiet  -args F:/小学学习资料/English/English/bin/Debug/English.exe
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.2
Warning: F:/灏忓瀛︿範璧勬枡/English/English: No such file or directory.
No source file named F:/灏忓瀛︿範璧勬枡/English/English/main.cpp.
Temporary breakpoint 2 ("F:/灏忓瀛︿範璧勬枡/English/English/main.cpp:390) pending.
Child process PID: 9340
Program exited normally.
Debugger finished with status 0

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Debugger failed when the directory name is in Chinese.
« Reply #1 on: February 19, 2012, 01:49:57 pm »
I copied the debugger windows message , I think the warning message in the log shows that the directory name is wrong/
When using GDB is is strongly advised to use only ANSI characters in the path... See GDB forums...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ