C++ 使用Xcode调试Maya插件
我正在尝试使用Xcode 4.6.3调试功能调试我为Maya 2013构建的Maya插件。我希望能够设置断点并跟踪插件,但无法为Maya调试设置Xcode。在“编辑方案”部分中,我将可执行文件设置为Maya.app,但这会在我的控制台窗口中产生以下输出:C++ 使用Xcode调试Maya插件,c++,xcode,api,debugging,maya,C++,Xcode,Api,Debugging,Maya,我正在尝试使用Xcode 4.6.3调试功能调试我为Maya 2013构建的Maya插件。我希望能够设置断点并跟踪插件,但无法为Maya调试设置Xcode。在“编辑方案”部分中,我将可执行文件设置为Maya.app,但这会在我的控制台窗口中产生以下输出: Flags: -v prints the product version and cut number -batch for batch mode -prompt
Flags:
-v prints the product version and cut number
-batch for batch mode
-prompt for interactive non-gui mode
-proj [dir] look for files in the specified project dir
-command [mel command] runs the specified command on startup
-file [file] opens the specified file
-script [file] sources the specified file on startup
(use complete file name)
-recover recover the last journal file
(use 'Render -help' for more options)
-optimizeRender [file] [outfile]
optimize maya file efficient for rendering
purposes, and put result in outfile
(use 'maya -optimizeRender -help' for more options)
-archive [file] displays a list of files required to archive
the specified scene.
-noAutoloadPlugins do not auto-load any plug-ins.
-3 enable Python 3000 compatibility warnings
-help prints this message
我已将生成配置设置为“调试”。已知的唯一有用的链接是它现在已经严重过时了
有人能帮我设置Xcode进行Maya调试吗?此链接为在Visual Studio中调试Maya插件提供了非常好的解释。同样的过程也可以应用于Xcode
Link:-我也遇到了同样的问题,但随后我将可执行文件设置为应用程序包中的实际可执行文件,并为我正确启动了它 例如,对于Maya 2016,将启动应用程序设置为: /Applications/Autodesk/maya2016/Maya.app/Contents/MacOS/Maya 与附件方法相比,我更喜欢此方法的主要原因是,它使您能够完全控制启动环境,并且您可以轻松地为调试会话设置环境变量(否则在OS X中设置环境变量会非常困难) 注意:很难从xcode浏览对话框浏览到应用程序包中,但您可以将文件从普通查找器窗口直接拖到浏览对话框中,以访问此不可访问的路径