As an example, I am trying to debug this (pseudocode):
spyOn(form, 'append').and.callThrough();
baseRecord.$fillForm(form, params, '[namespace]');
console.log(JSON.stringify(form.append));
expect(form.append.argsForCall).toEqual(...);
karma gives me:
LOG: function () { ... }
with no information about the content of the function.