Problem (from nuget PowerShell):
- launch IIS Express (website is in a folder) [done]
- launch IE9 to the URL [done]
- attach current VisualStudio instance to IIS to debug .net code [done]
- attach current VisualStudio instance to IE9 to debug Javascript code [PROBLEM]
Status:
Currently I'm able from powershell (with $DTE object) to attach VS to IIS and IE9 tab process. However I'm not able to debug javascript code (I think VS by default debugs only .net code and not Script).
I saw EnvDTE80.Transport, but I don't know how to use it inside nuget PowerShell. Do you have any idea to debug js? Or a completely different approach to the problem?
Update (8 August): I'm able to attach to IE9 debugging js BUT I found that my problem is completely different:
- I run IIS Express with powershell
- I run IE9 with powershell
- I can get the "Process"es object
BUT I attach the debugger to the processes too early and debugging doesn't work.
- I tried (i.e.) to start IIS Express, start IE9, attach first to IIS and then to IE9. Now I'm able to debug script but not to IIS Express.
- I tried to stop the script 5 second (Start-Sleep -s 5) before attach DTE to processes and now I'm able to debug both IE js and IIS. But I don't like sleep solution (how many seconds?).