How can I debug VLC on Mac? - objective-c

I want to add a little feature to VLC only on Mac.
How can I build and debug it? May I use Xcode? Or I should use something different?
I download sources from github, I can see Mac OS gui module. But how can I debug it?

It seems that #feepk's answer is outdated. You can use Xcode to debug VLC on macOS.
Follow the instructions to build VLC.
Launch the built VLC.app.
Open the Xcode project: vlc/extras/package/macosx/VLC.xcodeproj
Click Debug -> Attach to Process and choose VLC.

You should use lldb on the command-line or Instruments (if appropriate). Xcode is not supported.
Additionally, get in touch with us directly on http://forum.videolan.org to get faster feedback and responses :)

Related

Is it possible to replace a WebView with Chromium (CefBrowser) in an existing XCode project (OS X)?

I have to switch from a normal WebView to Chromium because this solution is said to work much better with a special database.
I downloaded the CefSimpleSample and I think I understand how it works.
I included the used libraries but I can't get the project working as it's supposed to be.
Does anybody have experience with Cef in an OS X - XCode - Application?
Cheers
Perhaps the Crosswalk project is something you can try. It uses a dedicated CEF runtime:

How to Use Intellij idea14.0.2 to Debug the golang?

The Debug button is disable, Shift+Alt+F9 will show this:
How to properly configure the debug page?
Update. The Go plugin supports Delve on Linux and Mac since September 2015 and on Windows since January 2016.
Original answer:
Currently we are dropping support for the debugger with gdb as it's very hard to use and unstable. Please see the go docs for gdb debugging
However, there are efforts in getting the open-source Delve debugger support for IDEs from which IDEA will benefit as well.
Please bug the Go team to support Delve or another debugger in order to have a stable solution and then integration with IDEA could be done.
thanks ,solved it.
Intellij Config is not right
The debug feature was introduced by issue 25, and commit 3a21e14
The correct way is to implement the debugger interfaces in inteliij and to hook them to a running gdb process.
(Here is an example of manually calling gdb to debug a Go program; using the options -c -gcflags '-N -l': not sure if the -l would matter as it is missing from the OP's screenshot "Go builder arguments")
It is possible the debug button is disabled if no gcc is configure for the Go debug process to use.
Note also that since PR 644:
"Debug" is disabled, if "Build Before run" is not enabled.
This should fix the problem, when gdb wants to run a not existing executable, because the outputDir is not set.

how to compile objective c file in google native client?

I have a npapi plugin(bundle) for chrome, which use C++ and objective-c. now it needs to be build by google native client.
I wonder that can nacl support objective-c? how to compile o-c file by MakeFile
And if possible, how to build nacl plugin in Xcode? I tried, but i found that the libraries of nacl are " archive with no architecture specification".(use lipo -info *.a)
I hope someone to help me, thanks a lot!!!
If you use Objective-C without any of its usual libraries then you should be able to use the PNaCl toolchain (which is based on LLVM) to have it parse Objective-C. I'm not aware of projects that have done this, so you should definitely let folks on the mailing list know if you get something working (do keep the questions on SO, though!).
It sounds like your application won't be running on the open web (where only architecture-independent PNaCl can run, not NaCl), so you could either use the PNaCl toolchain to create a .pexe, or you could use the same toolchain to create a .nexe for each architecture you target. The documentation I linked to helps with both approaches, but note that using the PNaCl toolchain to create a .nexe is currently being improved. You can therefore follow the instructions on the bug tracker, or try out nacl-clang when it's released (or build it yourself if you're brave).

How to build strobe media player?

I downloaded and installed strobe media player from http://osmf.org/strobe_mediaplayback.html in my MAC. I need to do some debugging using console log statements. How do I build this?
This doc might help: http://osmf.org/dev/osmf/specpdfs/building-osmf.pdf. Otherwise you should have the debug build available from the sourceforge download: http://sourceforge.net/projects/smp.adobe/files/
Hope that helps

How to Compile iOS programs in Windows

I've recently learned some basic Objective-C and have made a really simple "HelloWorld" application for development on iPhones (not through the AppStore, but Jailbreaked iPhones)
I've got my main.m file and Classes in my HelloWorld directory.
I have GNUStep Shell installed on my Windows Machine, the real question is:
How do I compile my HelloWorld Application so I can send it to my iOS device.
I really just want to get the compiled files and SSH it to my /Applications/ Directory to test it.
How can it be done? Thanks.
EDIT:
Alternatively, is there a way I can upload the SDK headers to my iPhone using SSH and compile my program on my iPhone?
Thanks.
Possibly it will be much more comfortable to use virtual machine with mac OS. In this way you will full development toolbox including debugger, leak tester and so on.