java - Debugging inlined values in IntelliJ IDEA -
consider following line of java code (it's pseudo code demonstrate scenario):
someobject.performaction(integer.parseint(other.transform(123)), messageformat.format(input, arg, processarg(arg2), anothervalue));
when coming along line when debugging in intellij idea, how can first see result of inlined calls before calling someobject.performaction
without refactoring them out local variables?
you can't 100% safely it.
if inline methods have no side effects select method call, e.g. processarg(arg2)
, use "evaluate expression" (alt-f8). result won't used when when debugger told continue running code, methods side effects evaluated @ least twice (once each time "evaluate expression" used, , once true call).
Comments
Post a Comment