List<Value> (@NotNull StackFrame frame) { try { return frame.getArgumentValues(); } catch (InternalException e) { // From Oracle's forums: // This could be a JPDA bug. Unexpected JDWP Error: 32 means that an 'opaque' frame was detected at the lower JPDA levels, // typically a native frame. if (e.errorCode() == JvmtiError.OPAQUE_FRAME /*opaque frame JDI bug*/) { return Collections.emptyList(); } else { throw e; } } }