How to Stop/Pause execution & How to use DeBug
Monkey Forums/Monkey Programming/How to Stop/Pause execution & How to use DeBug
| ||
Newbie questions , Thanks: How to Stop/Pause execution & How to use DeBug . I would like to Pause after a Print command . Also I would like to ask and Get something from the keyBoard . I have tried Stop , Get , Pause , Input , but can't find the right keyword . I specified Debug on the Debug/Release dropDown . All the Debug commands on my Build menu are greyed out . I suspect there is a keyword to turn on Debug . Thanks...vm |
| ||
Debugging is only available on C++ based targets. That is GLFW and C++ Tool. Monkey execution will be automatically stopped whenever a DebugStop command is found. Once it's stoped, you can inspect variable values, and step in/out source code. Be sure to be making a debug build, in order for it to work. |
| ||
How to debug on Mac with Xcode? On glfw i get the following error: TRANS FAILED: Error executing 'xcodebuild -configuration Debug', return code=16640 ** BUILD FAILED ** The following build commands failed: CompileC build/MonkeyGame.build/Debug/MonkeyGame.build/Objects-normal/x86_64/main.o /Users/csg/Desktop/DEVELOPING/Monkey/source/monkey_schreckenstein/schreckenstein.build/glfw/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) |
| ||
Oh, it was my fault. I had installed Xcode5-DP. I have deleted it an debugging is working again ;o) Otherwise i think this solution works too, if both versions are installed at the same time. |