Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Does nodejs core still support xcode-debugging on MacOS? #42884

Closed
zhuyingda opened this issue Apr 27, 2022 · 13 comments
Closed

Does nodejs core still support xcode-debugging on MacOS? #42884

zhuyingda opened this issue Apr 27, 2022 · 13 comments
Labels
build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX.

Comments

@zhuyingda
Copy link

What is the problem this feature will solve?

I remember it is supported some years ago that I can debug nodejs core (c++ code) by MacOS xcode after configure --xcode.
Now, it seems like I can not do this anymore.
I have read the document of building and found nothing about this.
I would appreciate if somebody could tell me how to debug the nodejs core on MacOS platform. Thanks.

What is the feature you are proposing to solve the problem?

debug nodejs core on MacOS platform.
:)

What alternatives have you considered?

Or please tell me how to debug Node.js on other platform? such as Linux...I have to build up my environment.

@zhuyingda zhuyingda added the feature request Issues that request new features to be added to Node.js. label Apr 27, 2022
@targos
Copy link
Member

targos commented Apr 27, 2022

The flag was removed a long time ago. See #20328 (comment) for a possible workaround.

@targos targos closed this as completed Apr 27, 2022
@targos targos added build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX. and removed feature request Issues that request new features to be added to Node.js. labels Apr 27, 2022
@targos
Copy link
Member

targos commented Apr 27, 2022

Actually, I'll keep this open. Maybe some people can point you to other ways to debug on macOS.

@targos targos reopened this Apr 27, 2022
@zhuyingda
Copy link
Author

The flag was removed a long time ago. See #20328 (comment) for a possible workaround.

Thanks for your reply, @targos :)

@zhuyingda
Copy link
Author

zhuyingda commented Apr 27, 2022

@targos by the way may I ask what develop platform are you using, Linux platform?
It seems like I am just minority user who use XCode IDE to debug C++ code...

@targos
Copy link
Member

targos commented Apr 27, 2022

I use macOS, Linux and Windows but I don't know how to debug C++ code effectively. I have basic knowledge of lldb on macOS and gdb on Linux.

@zhuyingda
Copy link
Author

I use macOS, Linux and Windows but I don't know how to debug C++ code effectively. I have basic knowledge of lldb on macOS and gdb on Linux.

so,how do you often debug nodejs core?
maybe lldb on MacOS?

@bnoordhuis
Copy link
Member

lldb is what I use on macOS (grudgingly, gdb muscle memory is too ingrained.)

@zhuyingda
Copy link
Author

I use macOS, Linux and Windows but I don't know how to debug C++ code effectively. I have basic knowledge of lldb on macOS and gdb on Linux.

@targos Do you use lldb on MacOS to debug nodejs core? :)

@RaisinTen
Copy link
Contributor

Same here:

  • lldb on macOS
  • gdb on linux and
  • stay away from Windows related things mostly :P. Maybe WinDBG would be useful on Windows but I haven't tried it yet.

@targos
Copy link
Member

targos commented Apr 28, 2022

I use macOS, Linux and Windows but I don't know how to debug C++ code effectively. I have basic knowledge of lldb on macOS and gdb on Linux.

@targos Do you use lldb on MacOS to debug nodejs core? :)

Yes, but I don't really spend my time debugging node's C++ code

@zhuyingda
Copy link
Author

Same here:

  • lldb on macOS
  • gdb on linux and
  • stay away from Windows related things mostly :P. Maybe WinDBG would be useful on Windows but I haven't tried it yet.

Thanks, and yes I do not like to do these things on Windows platform, too. :)

@zhuyingda
Copy link
Author

I use macOS, Linux and Windows but I don't know how to debug C++ code effectively. I have basic knowledge of lldb on macOS and gdb on Linux.

@targos Do you use lldb on MacOS to debug nodejs core? :)

Yes, but I don't really spend my time debugging node's C++ code

I think I should use lldb but not Xcode IDE, after all Xcode debugging is base on lldb.
Could you tell me any documentation about lldb debugging Nodejs core?

@targos
Copy link
Member

targos commented Apr 28, 2022

I'm not the one you should ask those questions.

@nodejs nodejs locked and limited conversation to collaborators Apr 28, 2022
@targos targos converted this issue into discussion #42891 Apr 28, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX.
Projects
None yet
Development

No branches or pull requests

4 participants