GithubHelp home page GithubHelp logo

kode / chakracore-debugger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/chakracore-debugger

0.0 1.0 0.0 378 KB

Debugging companion library for the ChakraCore JavaScript engine

License: MIT License

C++ 97.22% JavaScript 1.11% Batchfile 0.09% Python 0.16% C 1.42%

chakracore-debugger's Introduction

ChakraCore-Debugger

ChakraCore-Debugger is a C++ companion library which enables the debugging of ChakraCore using the DevTools Protocol.

Features

  • Enables drop-in support for debugging ChakraCore in host applications
  • Supports Visual Studio Code and other compatible clients
  • Exposes a C ABI for use by C99 consumers
  • Flexibility to replace the transport service code to meet the needs of the host

Status

This project is still in active development, but ready for integration. Future work is tracked in the issue tracker.

Usage

Prerequisites

  • Windows
  • Visual Studio 2017
  • Python 2.7 (For generating the protocol parser only; must be in the PATH)

Building

ChakraCore-Debugger depends on ChakraCore from NuGet. All other dependencies are header-only and included as submodules.

  1. Clone the project (and submodules):
> git clone --recurse-submodules https://github.com/Microsoft/ChakraCore-Debugger
  1. Launch the solution file:
> cd .\ChakraCore-Debugger\
> .\ChakraCore.Debugger.sln
  1. Right-click the "ChakraCore.Debugger.Sample" project and click "Set as StartUp Project".
  2. Choose the desired build configuration and platform (e.g. Debug - x64).
  3. Right-click on the Solution in "Solution Explorer" and click "Restore NuGet Packages".
  4. Set the debugger arguments in the "ChakraCore.Debugger.Sample" project to pass the startup parameters and the name of a script to run (e.g. --inspect-brk --port 9229 test.js).
  5. Hit F5 to start debugging.

Connecting

Connect to the sample application using Visual Studio Code.

  1. Navigate to a working folder and launch Visual Studio Code:
> pushd <working folder>
> code .
  1. Switch to the "Debug (Ctrl+Shift+D)" panel and click the "Configure or Fix 'launch.json'" gear button.
  2. Select the "Node.js" environment.
  3. Add a new configuration:
{
    "type": "node",
    "request": "attach",
    "name": "Attach",
    "port": 9229,
    "protocol": "inspector"
}
  1. Save the "launch.json" file and click the "Start Debugging" play button.
  2. Execution should break on the first line of the script.

Documentation

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Reporting Security Issues

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) at [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Contact Us

If you have any questions, please open an issue and prepend "[Question]" to the title.

chakracore-debugger's People

Contributors

akrantz avatar kfarnung avatar junielkatarn avatar akroshg avatar tcourtneyowen avatar microsoftopensource avatar asachin96 avatar msftgits avatar robdangerous avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.