Giter Site home page Giter Site logo

attachtodotnet's Introduction

Attach to dotnet.exe

Extension for Visual Studio 2017/2019 which makes it easier to attach to the correct dotnet.exe process.

Features

This extensions adds two commands to Visual Studio:

  • Attach to dotnet.exe. The dialog provides a clear view of different running .NET Core applications.
  • Reattach to the previous dotnet.exe process. Useful for scenarios where dotnet watch is used as the process id is changed everytime the code is compiled.

Screenshots

With the extension

Attach to dotnet.exe extension

Without the extensions

Attach to dotnet.exe without extension

attachtodotnet's People

Contributors

jakiiskinen avatar mikoskinen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

attachtodotnet's Issues

dotnet script support

Mikael,

In the absence of any built-in debugging for C# scripting (.csx) in Visual Studio 2019, this extension "as is" was almost just right for me to be able to, at least, debug and step through code. Your extension could "see" the external dotnet.exe parent process and even "attach" to it, but no breakpoints worked. However, tweaking your source code slightly to include child dotnet-script.exe process (and building a modified .vsix and adding to Visual Studio, of course) does make your extension work!

fix

I'm surprised Microsoft hasn't added the ability to do this themselves in Visual Studio yet, since dotnet script debugging is already available in VSCode.

Anyway, (1) using a custom configured tool for "dotnet.exe script" to launch an active C# script file and then (2) attaching to the process using your slightly modified extension (as well as (3) putting something at the top of the script to "force it to wait" so it doesn't just run straight through the script and exit before even have a chance to attach to the external process) seems work well!

overall

Perhaps you would consider tweaking your extension to work for dotnet.exe script since it is very useful!

Cheers,
Tom

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.