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.
Unable to Debug module
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.
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.
- mxtrinidad
- Posts: 399
- Last visit: Tue May 16, 2023 6:52 am
Re: Unable to Debug module
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).
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).