Giter Site home page Giter Site logo

sumuyzzz / vscode-debug-leetcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangtao0101/vscode-debug-leetcode

0.0 0.0 0.0 2.27 MB

vscode debug extension for leetcode, can work with vscode-leetcode

Home Page: https://marketplace.visualstudio.com/items?itemName=wangtao0101.debug-leetcode

License: MIT License

JavaScript 7.81% C++ 5.71% Python 7.12% TypeScript 79.36%

vscode-debug-leetcode's Introduction

Debug LeetCode

Solve LeetCode problems in VS Code and enjoy debugging

Attention

This extension should work with vscode-leetcode

Debug a Problem

debug

Currently debug-leetcode only support Python3, Javascript and cpp language and in the future we will support more lanuages which support vscode debug protocal. Welcome to get PR for another language. My next plan is to support c and java.

Not all problems are supported(most free problems are supported) and only supported problems have debug option.

If you have any issue about the debug feature, you can create a issue with detail information

Python3 debug

Requirement

  • Step 1. Install the Python extension for Visual Studio Code.

  • Step 2. Install a supported version of Python3 on your system (note: that the system install of Python on macOS is not supported) and add python command to your environment.

Cpp debug

gdb

Requirement

  • Step 1. Install the C/C++ extension for Visual Studio Code.

  • Step 2. Install MinGW Windows or sudo apt-get install build-essential gdb for linux on your system and add gcc and gdb command to your environment.

  • Step 3. You'd better read the document on vscode website about the example and how to debug cpp on corresponding system.

MacOS clang

clang

Javasript debug

Nothing just vscode

Be careful ❗️

Extention will generate some stub code in your current file like:

For python:

# @before-stub-for-debug-begin
from python3problem1 import *
from typing import *
# @before-stub-for-debug-end

For javascript

// @after-stub-for-debug-begin
module.exports = twoSum;
// @after-stub-for-debug-end

If you delete some stub code and forget to restore, you can delete all the stub code and the extension will generate again in next debug.


vscode-debug-leetcode's People

Contributors

wangtao0101 avatar tete1030 avatar xqdd 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.