Visual Studio + unrealscrip ide debugging

Source: Internet
Author: User

These two menstrual periods are often used to execute unrealscript, because many of the client's game logic is implemented using it. As a scripting language, unrealscript is naturally easier to write than C ++, but it is quite troublesome to debug. Executor executable files are really unpleasant. So we had to use the oldest method-'Log (similar to the C-language printf). During each debugging, we added a print statement prefixed with our own name near the suspicious code, after debugging, delete these print statements.

 

Later, I accidentally discovered the unrealscript IDE, which made debugging much easier. Today, we also found that unrealscript ide may be more convenient than nfringe-the former can be used with Visual Studio to debug C ++ and unrealscript code simultaneously in the same process. To do this, you do not need to install plug-ins. The method is to use unrealscript
IDE command line to start debugging:

  1. Use the udk.exe make-debug-full command to compile the UC file in debug mode.
  2. Open the source code project in unrealscript IDE.
  3. Add the debugging parameter autodebug in the Project Properties of the Visual Studio project.
  4. In Visual Studio, press F5 to start the program for debugging.

However, this method still has a defect, that is, it cannot directly step into from unrealscript to C ++ code, or vice versa. If an unrealscript statement calls the C ++ function, you must first set a breakpoint at the call statement in the unrealscript IDE, and then find the C ++ function in Visual Studio, you can set another breakpoint in Visual Studio to simulate the step into effect.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.