Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

wangtao0101/vscode-debug-leetcode

Repository files navigation

Solve LeetCode problems in VS Code and enjoy debugging

Attention

This extension should work withvscode-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 cancreate a issue with detail information

Python3 debug

Requirement

  • Step 1. Install thePython 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 theC/C++ extension for Visual Studio Code.

  • Step 2. InstallMinGW Windows orsudo 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 thedocument 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-beginfrompython3problem1import*fromtypingimport*# @before-stub-for-debug-end

For javascript

//@after-stub-for-debug-beginmodule.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.


About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp