Giter VIP home page Giter VIP logo

Comments (2)

erwinvanhunen avatar erwinvanhunen commented on May 28, 2024

There is absolutely a way to debug them. Open the solution in Visual Studio, build the project and make sure that you do NOT have the prebuild package installed (e.g. the one that comes as an MSI). The build command (make sure you build in debug mode) will copy the assemblies to a folder called:

c:\users\Documents\WindowsPowerShell\Modules\etc. etc.

That path is added to your PSModulePath environment variable by default and the moment you launch a powershell session it will automatically load the modules available there. Then in Visual Studio attach the debugger to the powershell session you just launched and you should be set. Make sure that if you use the latest version of the powershell cmdlets in Visual Studio you also need a full copy of the core library on your computer (e.g. the source code) as many of the PnP PowerShell cmdlets are simply wrappers around Core library methods, e.g. the work is done in the core library.

from pnp-powershell.

PieterVeenstra avatar PieterVeenstra commented on May 28, 2024

Thanks that worked. The solution was installed using the msi. It actually appeared multiple times in the list of installed programs when I used add/remove programs.

from pnp-powershell.

Related Issues (20)

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.