x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I get a debuggable version of my game to load in the editor?

I am still struggling to figure out how to get debugging working with UE4 C++. I have tried running the editor with the -debug flag, but it doesn't seem to change anything. When I use the editor to compile, the output seems to indicate it is creating a development build, and if I attach the debugger to the editor process and set a breakpoint, most my local variables are optimized out, making it difficult to step through the code and figure out what's happening. I can set Visual Studio's build configuration to Debug Game and build the game project, but the editor doesn't load that version of the game project. Does the -debug switch actually do anything? What do I need to do to get a debuggable version of my game classes to work with the editor?

Product Version: UE 4.19
Tags:
more ▼

asked Jul 13 '18 at 03:27 AM in C++ Programming

avatar image

VolatileAgent
61 2 6 7

avatar image VolatileAgent Jul 27 '18 at 07:04 PM

Still haven’t figured this out. What type of build are most people using for C++ projects? The only way I’ve found to debug some things is with very verbose logging, which is cumbersome compared to being able to step through the code.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

This was answered on the Unreal Engine Forums: the trick is to launch the editor from Visual Studio. Then you can use whichever build target you want, and the hot reload still works.

more ▼

answered Jul 29 '18 at 09:17 PM

avatar image

VolatileAgent
61 2 6 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

When you install a version of the Editor via epic games launcher, there are additional options before installing that you can select, including adding debug symbols. I'm not ssure if this will fox your problem but it's an idea

more ▼

answered Jul 13 '18 at 06:00 AM

avatar image

mightyenigma
3.8k 18 24 21

avatar image VolatileAgent Jul 13 '18 at 02:21 PM

I think I checked those options when I installed, but it's not engine symbols that are the problem -- I just want to debug my own code.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question