List Info

Thread: Debug JavaScript in VS2005




Debug JavaScript in VS2005
user name
2008-01-21 10:39:58
Ciao a tutti,
come l'eggete dall'oggetto di questo post il problema è che
non riesco
a debuggare JavaScript da VS2005, nonostante abbia seguito
minuziosamente le indicazioni trovate su internet (che
incredibilmente
coincidono nella maggior parte dei siti che ho consultato).
Apparentemente funziona tutto, se non fosse che sul più
bello, ovvero
dopo aver clickato sul file d'interesse nella finestra
"Esplora
script", non viene visualizzato il puro codice html
renderizzato, ma
il codice sorgente (ovvero tag html e aspx).
La cosa assurda è che l'esecuzione del JS si interrompe sul
comando
"debugger;" (o sul break point) e se procedo step
by step sembra anche
entrare nelle funzioni che richiamo (lo capisco dal
"call stack").
Sembrerebbe in pratica che VS non riesce ad
"attaccarsi" al codice
visualizzeto da IE.

Cosa posso fare? Cosa devo controllare? A quale dio/demone
offrire in
sacrificio una vergine? Devo ballare la giga? AIUTO!!!!!

Grazie in anticipo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---


Re: Debug JavaScript in VS2005
user name
2008-01-21 10:55:04
English, dear friend.

I ran your post through google's translate page and here's
what I
got :

------------

Hello everyone,
Eggete like from the post of this problem is that I can not
JavaScript debugged by a VS2005, despite below
Minutely signs found on the Internet (who incredibly
Coincide in most of the sites I consulted).
Apparently everything worked, were it not that on the most
beautiful,
or
Having clicked on the file of interest in the "Explore
Script "is not showing the pure html code rendered,
but
The source code (or html tags and aspx).
The absurd thing is that the implementation of JS stops on
command
"Debugger" (or the break point) and do step by
step seems too
Enter functions that point (I understand from the call
stack).
It would seem that in practice VS fails to "stick"
to the code
Visualizzeto IE.

What can I do? What should I check? Which god / demon offer
Sacrifice a virgin? Should the giga dance? HELP !!!!!


Thanks in advance

------------

Wading my way through that, I surmise that you're not able
to debug
Javascript in VS 2005. To do so in the easiest manner,
follow these
steps :

1. In Internet Explorer, go to Tools -> Options ->
Advanced Tab ->
Uncheck "disable script debugging (Internet
Explorer)".
2. Add a "debugger" statement in your javascript
where you want to
break execution. No need to apply breakpoints.
3. Open your page in the browser (No need to run in debug
mode.)
4. Your page should halt at the breakpoint and you should
see a dialog
which says something like "An unhandled exception
[Script breakpoint]
was encountered." Choose one of the debuggers available
in the list
(preferably VS 2005) and click OK.
5. You should now see the script load in VS 2005 and can use
the
normal F10 key to move forward. The variables values will
only be
shown in the Locals window.

On Jan 21, 9:39 pm, Chianco <chianc...gmail.com> wrote:
> Ciao a tutti,
> come l'eggete dall'oggetto di questo post il problema è
che non riesco
> a debuggare JavaScript da VS2005, nonostante abbia
seguito
> minuziosamente le indicazioni trovate su internet (che
incredibilmente
> coincidono nella maggior parte dei siti che ho
consultato).
> Apparentemente funziona tutto, se non fosse che sul più
bello, ovvero
> dopo aver clickato sul file d'interesse nella finestra
"Esplora
> script", non viene visualizzato il puro codice
html renderizzato, ma
> il codice sorgente (ovvero tag html e aspx).
> La cosa assurda è che l'esecuzione del JS si interrompe
sul comando
> "debugger;" (o sul break point) e se procedo
step by step sembra anche
> entrare nelle funzioni che richiamo (lo capisco dal
"call stack").
> Sembrerebbe in pratica che VS non riesce ad
"attaccarsi" al codice
> visualizzeto da IE.
>
> Cosa posso fare? Cosa devo controllare? A quale
dio/demone offrire in
> sacrificio una vergine? Devo ballare la giga?
AIUTO!!!!!
>
> Grazie in anticipo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---


Re: Debug JavaScript in VS2005
user name
2008-01-21 10:57:36
Okay, now where's the virgin who was going to be sacrificed
? Tell her
not to worry, we might have more errr... pleasant
arrangements in
store for her.

On Jan 21, 9:39 pm, Chianco <chianc...gmail.com> wrote:
> Ciao a tutti,
> come l'eggete dall'oggetto di questo post il problema è
che non riesco
> a debuggare JavaScript da VS2005, nonostante abbia
seguito
> minuziosamente le indicazioni trovate su internet (che
incredibilmente
> coincidono nella maggior parte dei siti che ho
consultato).
> Apparentemente funziona tutto, se non fosse che sul più
bello, ovvero
> dopo aver clickato sul file d'interesse nella finestra
"Esplora
> script", non viene visualizzato il puro codice
html renderizzato, ma
> il codice sorgente (ovvero tag html e aspx).
> La cosa assurda è che l'esecuzione del JS si interrompe
sul comando
> "debugger;" (o sul break point) e se procedo
step by step sembra anche
> entrare nelle funzioni che richiamo (lo capisco dal
"call stack").
> Sembrerebbe in pratica che VS non riesce ad
"attaccarsi" al codice
> visualizzeto da IE.
>
> Cosa posso fare? Cosa devo controllare? A quale
dio/demone offrire in
> sacrificio una vergine? Devo ballare la giga?
AIUTO!!!!!
>
> Grazie in anticipo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )