GithubHelp home page GithubHelp logo

isabella232 / vscode-unity-debug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unity-technologies/vscode-unity-debug

0.0 0.0 0.0 16.21 MB

Unity debugging support for VS Code

License: Other

C# 97.24% Makefile 0.10% TypeScript 2.66%

vscode-unity-debug's Introduction

Unity Debugger Extension for Visual Studio Code

This extension is not officially supported by Unity Technologies.

Use Visual Studio Code to debug your Unity C# projects.

Setup

  • Open your Unity project folder in the Visual Studio Code.

  • Select the debug view on the left and click the cogwheel.

Debug View

  • In the drop down list select “Unity Debugger”. If you do not have Unity Debugger in the list, then you already have a .vscode/Launch.json file in your project that you must delete first.

Debugger List

  • You will now have a .vscode/Launch.json file in your Unity project folder and can select which Unity target you wish to debug.

Debugger List

  • All done. You can now debug your C# scripts in VS Code by setting a breakpoint in a C# script from your project, switching to the debug view and clicking the green triangle button to attach to Unity. Enter play mode in Unity and the breakpoint should hit in VS code.

Attach to Process Picker

New in version 1.1.0 it is now possible to select which Unity process you want to attach to from a quick pick menu.

  • In the command palette type "Unity Attach Debugger"

  • Wait a bit for the Unity processes list to appear at the top of the VS Code window.

  • Select the Unity process you wish to attach the debugger to.

Usage

Strings in the variable view is truncated to 100 characters, with appended ellipsis. "Example wor...". To view the entire value of this string add it to the watch fields. In addition, evaluating the variable using the debugger console will reveal the same result.

Building

To build this repository, clone it then get all submodules:

git clone https://github.com/Unity-Technologies/vscode-unity-debug
cd vscode-unity-debug
git submodule update --init --recursive

Then open VSCode-UnityDebug.sln in Visual Studio.

vscode-unity-debug's People

Contributors

asafamr avatar deitry avatar dschroer avatar hirakuro avatar joerobich avatar lukaszdk avatar lukaszunity avatar miniwolf avatar poisonousjohn avatar rarepops avatar scw avatar spriest487 avatar terrehbyte 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.