You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue where i am attempting to debug a psm1 module script. When I launch the debugger with standard Powershell launch.json settings, I get an error "Cannot run a document in the middle of a pipeline: C:\samplemodule.psm1."
Any specific way i can invoke the "import-module .\samplemodule" somehow?
The text was updated successfully, but these errors were encountered:
You can create a debug.ps1 file that imports the module and runs exported commands. Or you can create a Pester test (SampleModule.Tests.ps1) file that imports the module and tests the commands in that file. You can than run the debug.ps1 or Pester test file under the debugger.
I am having an issue where i am attempting to debug a psm1 module script. When I launch the debugger with standard Powershell launch.json settings, I get an error "Cannot run a document in the middle of a pipeline: C:\samplemodule.psm1."
Any specific way i can invoke the "import-module .\samplemodule" somehow?
The text was updated successfully, but these errors were encountered: