Debug with multiple files not working
Posted: Tue Mar 22, 2016 5:44 pm
Product, version and build: PowerShell Studio 2016 [REMOVED BY MODERATOR]
32 or 64 bit version of product: 64
Operating system: Windows 7
32 or 64 bit OS: 64
I am trying to debug multiple files without success.
I have:
- A main file, with parameters and no functions
- 2 accessory files, with multiple functions (each function has parameters).
The main file dot sources the accessory files at the beginning and calls the functions as needed.
Now, everything works fine and dandy when I debug one file at a time.. as it prompts me for the parameters.
The issue arises if I try to debug all of them together. it never prompts for the parameters and quits the debug immediately.
Any ideas?
UPDATE: I found a way to run the main file in multi-file debug by using the call function in the project startup file Startup.pss:
Call-mainfile_ps1 -param1 "string1" -param2 "string2". So the main file runs and debugs.
The problem is that when it calls the dot sourced functions, it doesn't switch file to let me debug those functions - it just runs them and goes to the next breakpoint in the main file.
Of course the accessory files all have their breakpoints.
32 or 64 bit version of product: 64
Operating system: Windows 7
32 or 64 bit OS: 64
I am trying to debug multiple files without success.
I have:
- A main file, with parameters and no functions
- 2 accessory files, with multiple functions (each function has parameters).
The main file dot sources the accessory files at the beginning and calls the functions as needed.
Now, everything works fine and dandy when I debug one file at a time.. as it prompts me for the parameters.
The issue arises if I try to debug all of them together. it never prompts for the parameters and quits the debug immediately.
Any ideas?
UPDATE: I found a way to run the main file in multi-file debug by using the call function in the project startup file Startup.pss:
Call-mainfile_ps1 -param1 "string1" -param2 "string2". So the main file runs and debugs.
The problem is that when it calls the dot sourced functions, it doesn't switch file to let me debug those functions - it just runs them and goes to the next breakpoint in the main file.
Of course the accessory files all have their breakpoints.