cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Code Stage

SandroPaetzold
Level 3
Hey Guys, I have a Code stage which throws a exception "Object reference not set to an instance of an object." If i run my code in Visual Studio, there is no exception, I i run the same code in BP I get the mentioned exception. Unfortunately I cannot figure out at which point the exception is thrown. Is there a way to Debug C# code directly within BP or get at least a exception with more details? Thanks Sandro
1 REPLY 1

John__Carter
Staff
Staff
There is no debug facility I'm afraid. I suggestUse try/catchIntroduce a new, temporary number output called something like 'last known position'At strategic positions in the code add the line lkp += 1;Use the output value to try to figure out where the error is happening. Remove the output once the error is fixed