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"

Is there any BP node which acts as debug trap?

Hi, I'm searching to some node which works as a debugger trap. So I can link it from every place which I think as illegal state or data script error and I would like to stop execution at this moment to track problem.

Product Version: UE 4.9
Tags:
more ▼

asked Nov 08 '15 at 07:58 PM in Blueprint Scripting

avatar image

The Toster
7 2 2 3

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

2 answers: sort voted first

Have you tried using breakpoints? You can right click on any node > Breakpoints > Add Breakpoint. It will pause the game when the execution reaches that node.

more ▼

answered Nov 08 '15 at 08:01 PM

avatar image

Jacky
16.8k 671 167 676

avatar image The Toster Nov 08 '15 at 08:06 PM

Yes I tried. I also thought about creating some function/macro in which I just set breakpoint but before doing so I decided to ask. Maybe there is already some node which I didn't found. Something like Assert in programming languages.

avatar image Jacky Nov 08 '15 at 08:11 PM

There is no such node at the moment, but i recall a feature request for something like that so it may be implemented in the future.

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

There is Set Game Paused function. It takes a boolean argument. So it can be used as a debug trap. Also it has an advantage over breakpoints: when a game paused by Set Game Paused you can explore a scene in a viewport, select different actors and view their variables.

more ▼

answered Apr 15 '19 at 01:47 AM

avatar image

megafanat
10 1 3

(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