"Object has too long reference chain" in Debugger.evaluateOnCallFrame

2,165 views
Skip to first unread message

Narciso Jaramillo

unread,
Nov 28, 2011, 6:02:30 PM11/28/11
to google-chrome-...@googlegroups.com
Hi,

I'm using the remote debugging API in Chrome 15.0.874.121. I'm stopping at a breakpoint, and while stopped, I send Debugger.evaluteOnCallFrame with the expression "this", so I can introspect the properties of "this". In previous builds this worked fine, but in this build I'm getting an error: code -32000, message "Object has too long reference chain(must not be longer than 1000)".

Any idea what this error means?

Thanks,

nj

Narciso Jaramillo

unread,
Nov 28, 2011, 6:07:06 PM11/28/11
to google-chrome-...@googlegroups.com
Figured it out--I had returnByValue set to "true" and it was probably returning some huge JSON object. Turns out I was already just getting the objectId from the result and calling Runtime.getProperties, so I could just set returnByValue to "false".

Charles Patton Jr

unread,
Mar 20, 2019, 11:15:56 AM3/20/19
to Chrome DevTools
Sorry to necro an 8 year old thread but I'm also running into this problem and I don't have returnByValue set to true. I tried monkey-patching create-debugging-protocol-client to use JSON.prune to remove circular references but even that didn't work.

I'm curious how I'd even get to inspect what the reference chain looks like, I wouldn't expect the chain I have to be super long but obviously the tools think otherwise.

I'm new to using the chrome developer tools though and can't seem to find many other people having this issue I'm guessing due to the niche area that this is in or maybe my issue is just from lack of experience...

Either way, any thoughts?
Reply all
Reply to author
Forward
0 new messages