all groups > dotnet jscript > july 2006 >
You're in the

dotnet jscript

group:

Debugging JavaScript in 2005 IDE --- Please, many people to review/suggest solution to this problem



Debugging JavaScript in 2005 IDE --- Please, many people to review/suggest solution to this problem Don Bedner
7/18/2006 6:42:33 PM
dotnet jscript: Hope I'm in the correct group for this.

I am attempting to debug JavaScript application in Windows IE6 via the 2005
IDE.

Through the "Debug" menu option, I select "Attach to Process..." and find
the IE process supporting my page in the list and double-click it to attach
to the process. Because I have Debug\Windows\Script Explorer turned on, I
can see my script in the "Script Explorer" pane. When I double-click my
page in the list, a new tab is added to the IDE allowing me to set
break-points, view variables, adjust the instruction pointer, etc. Before
long, though, the selected entry in the "Script Explorer" pane disappears as
well as the tab supporting that debugging session in the IDE. When this
occurs, I attempt to detach from the "hidden/missing" process via
\Debug\Detach All and run the attach steps again as described previously.
Sometimes it works and the process is re-attached and sometimes it doesn't
in which case I have to close the page that I'm trying to debug and start
all over -- some that is a great pain in the A$$.

Is there a way to stop the "detachment" with some internal IDE or IE setting
so I don't lose my debugging session?

Is this a bug in the IDE?

Is there a way to re-attach consistently?

Any help would be appreciated.

Thanks!



Re: Debugging JavaScript in 2005 IDE --- Please, many people to review/suggest solution to this problem Don Bedner
7/19/2006 6:19:27 PM
OK -- I've answered my own question -- but what a finding!

Seems that the problem occurs when my desktop image changes. I use WebShots
to put a new desktop image on every 15 minutes. When it changes, the
problem that I've explained initially occurs. I wondered whether the
problem is WebShots or system related. So, I started another debugging
session using the IDE and then via the Display Properties dialog, Desktop
tab, I switched to another background -- sure enough, the IDE debugging
session dropped out.

So, Microsoft, you've got a(nother) bug!


[quoted text, click to view]

AddThis Social Bookmark Button