Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding problem #36

Closed
wind2412 opened this issue Apr 26, 2017 · 2 comments
Closed

Encoding problem #36

wind2412 opened this issue Apr 26, 2017 · 2 comments

Comments

@wind2412
Copy link

Which OS: mac osx Sierra 10.12.4
Which LLDB version (lldb -version):

lldb -v                                                                                      
lldb-370.0.40
  Swift-3.1

Which VSCode version (Help/About):
1.11.2
What is the problem and how did you get there:
I used this config:

 {
	"type": "lldb",
	"request": "launch",
	"name": "C++ Debug",
	"program": "${workspaceRoot}/bin/${fileBasenameNoExtension}",
	"args": [],
	"cwd": "${workspaceRoot}"
}

When I debug my cpp code, I get:

Internal debugger error:
Traceback (most recent call last):
  File "/Users/xxx/.vscode/extensions/vadimcn.vscode-lldb-0.4.1/adapter/debugsession.py", line 888, in handle_message
    result = handler(args)
  File "/Users/xxx/.vscode/extensions/vadimcn.vscode-lldb-0.4.1/adapter/debugsession.py", line 91, in DEBUG_launch
    self.target = self.create_target(args)
  File "/Users/xxx/.vscode/extensions/vadimcn.vscode-lldb-0.4.1/adapter/debugsession.py", line 189, in create_target
    target = self.debugger.CreateTarget(str(program), None, None, load_dependents, error)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 30-34: ordinal not in range(128)

What did you expect to have happened instead (if not obvious):
Of course I can debug with lldb~;)

@vadimcn
Copy link
Owner

vadimcn commented Apr 26, 2017

@wind2412: What is the name of your program?

@wind2412
Copy link
Author

Thank you! Solved. My full program path has Chinese in it. But I think it is a spot that can be improved;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants