1

I want to step into(e.g.F11) Object.create() and see what is happening internally. Is there any way to achieve this in Chrome Dev tools?

var o = {name: 'pat'};
var p = Object.create(o);
1
  • Open console and paste that code there. Commented Dec 26, 2018 at 13:05

2 Answers 2

2

Object.create is native code. You can't debug it as it's not written in javascript. Wedkit and firefox developers have coded it in C or C++

Sign up to request clarification or add additional context in comments.

Comments

0

You can debug this code. Open Dev Tool in Chrome:

Windows: F12

Mac: ⌘ + Option + i

Edit your code and put the "debugger;" before.

debugger;
var o = {name: 'pat'};
var p = Object.create(o);

Navigate with F11

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.