Skip to content
This repository has been archived by the owner on Jun 23, 2018. It is now read-only.

Disable JavaScript Output Depth #75

Open
scottgoldwater opened this issue Feb 28, 2014 · 2 comments
Open

Disable JavaScript Output Depth #75

scottgoldwater opened this issue Feb 28, 2014 · 2 comments

Comments

@scottgoldwater
Copy link

I'm wondering if it's possible to disable the output depth for particular objects. I integrated Jquery and various other APIs into jsrepl and I get the entire object outputted on the screen when I run simple functions.

@scottgoldwater
Copy link
Author

Never mind I just figured it out. For those who want to know... the depth is being controled by the inspect function in the console.js file which can be accessed from jsrepl_js.js.

I am trying to get a result from a callback so I want the depth to be null for the API object and at 4 for the result from the callback. What's the best way to do this?

@amasad
Copy link
Contributor

amasad commented Feb 28, 2014

maybe add a new method to console that does a console log with a specified depth. console.logWithDepth or something

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants