Unable to Debug module

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
maximla
Posts: 6
Last visit: Mon Apr 29, 2019 12:52 am

Unable to Debug module

Post by maximla »

Product, version and build: Powershell studio 2019 5.6.157
32 or 64 bit version of product: 64 bit
Operating system: win 10
32 or 64 bit OS: 64 bit
Hi!

I created a new .psm1, I'm able to place breakpoints, but I'm not able to start the debugger. It's all greyed out.
Image
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Unable to Debug module

Post by mxtrinidad »

Keep in mind! Modules need to be loaded in a PowerShell session first before it's use.
Then, you need to create a separate script file(s) that uses the module command(s) in order to test then and/or check for errors.

Functions in any the module can't run by themselves, it need to be execute from a command line or a script file(s).

:)
This topic is 5 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.