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

cannot load local .lldbinit #42

Closed
zhuzhuaicoding opened this issue May 17, 2017 · 3 comments
Closed

cannot load local .lldbinit #42

zhuzhuaicoding opened this issue May 17, 2017 · 3 comments

Comments

@zhuzhuaicoding
Copy link

Which OS: Linux
Which LLDB version (lldb -version): 4.0
Which VSCode version (Help/About): 1.12.2

What is the problem and how did you get there: Cannot load .lldbinit

What did you expect to have happened instead (if not obvious):

details:
I have a .lldbinit in home/xxxx dir. It has settings set target.load-cwd-lldbinit true.And I have a .lldbinit in my workspaceRoot.But when I run debug, I cannot use the custom commands defined in my workspaceRoot .lldbinit.

@vadimcn
Copy link
Owner

vadimcn commented May 22, 2017

When VSCode launched lldb, its current directory is not ${workspaceRoot}.

You can add this line into your launch.json:

"initCommands": ["command source ${workspaceRoot}/.lldbinit"]

@zhuzhuaicoding
Copy link
Author

@vadimcn it works. Thanks very much.:)

@vadimcn
Copy link
Owner

vadimcn commented Jul 1, 2017

In 0.5.2 the debugger will be started in ${workspaceRoot} directory. Just having .lldbinit should work now.

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