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 debug with vs2017 after hot reload.

Hi,

I have a problem. When i launch the ue4-editor from vs2017, the debugger works fine. Then i make some changes and build it. The ue4-editor will detect some dlls changed and hot reload them. And then i use vs2017 "debug\attach to process.." menu to debug ue4-editor, the breakpoints can not work. I don't want to restart the editor. How can i do it?

Thanks.

Product Version: UE 4.19
Tags:
more ▼

asked May 29 '18 at 10:08 AM in C++ Programming

avatar image

lizhi0086
6 2 1

avatar image lizhi0086 May 30 '18 at 08:53 AM

I checked again, ue4-editor load new dll after hot reload, and keep reference of old dlls. It's ok, but sometimes vs2017 can not load new dll module(can not find new dll module in module window), so pdb is a wrong version.

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

1 answer: sort voted first

I generally find it easier to close the editor and then build run the process from VS. It takes longer but you get better results.

However, if you want to try not restarting the editor then there is a way:

  • Place / Enable your breakpoint

  • Right Click on it and select 'Conditions'

  • There is a 'Location' section at the top of the popup which appears which will end in 'Must Match Source'. Click on the text

  • Tick the box labelled 'Allow the source code to be different from the original'

I get mixed results from this. It's find in some cases, other times it leads to false results but that's just the nature of it.

more ▼

answered May 29 '18 at 10:30 AM

avatar image

phil_me_up
1.5k 6 6 12

avatar image lizhi0086 May 30 '18 at 02:48 AM

Yes, if you select "Allow the source code to be different from the original" option, the breakpoints become solid but have no effect.

avatar image phil_me_up May 30 '18 at 09:36 PM

Ah, in which case you might be out of luck and need to reload the editor. Before you do that though, it's worth checking your code and making sure that these breakpoints would actually get hit. It might be worth putting in some breakpoints higher up the callstack and then following it through just to be sure.

(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