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

Please OS X user manual to README and how to set breakpoint in lldb? #48

Closed
3 tasks done
meritozh opened this issue Mar 12, 2016 · 3 comments
Closed
3 tasks done

Comments

@meritozh
Copy link

If submitting a bug please make sure

  • use lldb
    • lldb --version is apple version
    • it works on the command line with lldb-mi

Xcode command tools won't provide lldb-mi, but this command is shipped with Xcode.app

just one command can make OS X user use this extension.
ln -s/Applications/Xcode.app/Contents/Developer/usr/bin/lldb-mi /usr/local/bin/lldb-mi

And how to configure launch.json to make it support breakpoint?

@meritozh meritozh changed the title Please OS X user manual to README and how to set breakpoint? Please OS X user manual to README and how to set breakpoint in lldb? Mar 12, 2016
@WebFreak001
Copy link
Owner

These are the languages which have breakpoint support enalbed: https://github.com/WebFreak001/code-debug/blob/master/package.json#L189-L210

Basically if you use some language from that list you can simply hover over the line counter at the left in your files and click the red circle. The red circle indicates a breakpoint, you can also right click the circle and edit it. In that input box you can enter a break condition (for example i > 40 if you have a variable named i and it will only break if i is greater than 40)

If you are using a language with no breakpoint support but LLDB/GDB support just make an issue or fork and PR yourself. Its a really simple task which just requires you to add a string to the LLDB/GDB array.

I'm gonna add that ln command to the README

@meritozh
Copy link
Author

Thanks.

I just forget to add --debug : (

@GitMensch
Copy link
Collaborator

For anyone that may come back to this later, the URL with the languages that include breakpoint support referenced was

code-debug/package.json

Lines 189 to 210 in f0f1025

"c",
"ada",
"cpp",
"cobol",
"fortran",
"pascal",
"modula",
"java",
"pli",
"objective-c",
"objective-cpp",
"d",
"python",
"opencl",
"modula3",
"haskell",
"ocaml",
"swift",
"julia",
"dylan",
"mips",
"renderscript"
. It seems more split currently (and I do wonder why "cobol" is listed under lldb-mi, but not under gdb, and guess its common [debuggable] id should be additional gnucobol )

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

No branches or pull requests

3 participants