简体   繁体   English

从开发者工具调试 Chrome Javascript 引擎源代码

[英]Debugging Chrome Javascript engine source code from Developer Tools

I have some sample JS code that I am running in the browser and it uses Promise.我有一些在浏览器中运行的示例 JS 代码,它使用 Promise。 I would like to debug the source code of the JS engine along with debugging my source code.我想调试 JS 引擎的源代码以及调试我的源代码。 Is there a way I can attach the JS engine source code in chrome developer tools?有没有办法可以在 chrome 开发者工具中附加 JS 引擎源代码?

UPDATE:更新:

 const buyFlightTicket = () => {
        return new Promise((resolve, reject) => {
            setTimeout(() => {
                const error = false;
                if (error) {
                    reject("Sorry your payment was not successful")
                } else {
                    resolve("Thank you, your payment was successful");
                }
            }, 3000)
        })
    }
    buyFlightTicket()
        .then((success) => console.log(success))
        .catch((error) => console.log(error));

I have this piece of code and I want to understand what the Promise() function is doing with the function I am passing it as argument我有这段代码,我想了解 Promise() function 对 function 的作用我将它作为参数传递

V8 developer here. V8 开发人员在这里。 To debug V8 itself, you need a C++ debugger (like GDB or LLDB or Visual Studio's debugger), along with a Debug build of Chrome or V8.要调试 V8 本身,您需要 C++ 调试器(如 GDB 或 LLDB 或 Visual Studio 的调试器),以及 Chrome 或 V8 的调试版本。 Chrome DevTools can't debug V8's internals. Chrome DevTools 无法调试 V8 的内部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Chrome开发人员工具中调试AngularJS? - Debugging AngularJS in Chrome developer tools? 使用Chrome Web开发人员工具在HTML5中调试JavaScript - debugging javascript in HTML5 using chrome web developer tools Javascript 代码只能在 Chrome 开发者工具打开时在 Chrome 中工作 - Javascript code only works in Chrome while Chrome Developer Tools are open 如何使用Chrome开发人员工具执行一段JavaScript代码 - How to execute a piece of JavaScript code using Chrome developer tools 如何在Chrome开发者工具中排序最小化的javascript代码? - how to sort minimalized javascript code in chrome developer tools? 如何在 chrome 开发者工具中自动化需要点击 javascript 按钮的代码 - How to automate the code that requires the click of a button in javascript in chrome developer tools Chrome开发人员工具javascript版本 - Chrome developer tools javascript version 从 chrome 开发者工具的工作区运行 javascript 文件 - Run javascript file from the workspace in chrome developer tools 从 JavaScript 以编程方式打开 Safari / Google Chrome 开发者工具 - Open Safari / Google Chrome developer tools programmatically from JavaScript 从Chrome开发者工具暂停警报框上的JavaScript执行 - Pause JavaScript execution on alert box from Chrome Developer Tools
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM