Can I debug and see where I am in an website?

Can I debug and see where I am in an website?

am 20.12.2007 12:49:59 von jamesb457

I'm trying to fix a site that someone has left me and - to understate
it - it is huge!
I'm trying to work on a specific section but i can't seem to find
where the proper code for it is..

There is a menu on the main page which, when clicked brings up a
dialog box which needs filling out. I just can't find the code for
this section.
There are dozens of namespaces, hundreds of classes, and loads
of .aspx, .asax, .asmx files.
No comments or documentation available.

So since i've got remote debugging working, can I see where I am in
the site somehow? Which page/class/method has just been run?

Just to make things worse its Vis Studio 2003, .NET 1.1

Re: Can I debug and see where I am in an website?

am 20.12.2007 13:42:45 von Kevin Spencer

You can step through the code in the Visual Studio debugger when you run the
site in Visual Studio in Debug mode. It will load the pages and code files
into the Editor when they are used. This is assuming that there are no DLLs
in use (you didn't mention any), or that the DLLs are debuggable.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"JB" wrote in message
news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.google groups.com...
> I'm trying to fix a site that someone has left me and - to understate
> it - it is huge!
> I'm trying to work on a specific section but i can't seem to find
> where the proper code for it is..
>
> There is a menu on the main page which, when clicked brings up a
> dialog box which needs filling out. I just can't find the code for
> this section.
> There are dozens of namespaces, hundreds of classes, and loads
> of .aspx, .asax, .asmx files.
> No comments or documentation available.
>
> So since i've got remote debugging working, can I see where I am in
> the site somehow? Which page/class/method has just been run?
>
> Just to make things worse its Vis Studio 2003, .NET 1.1

Re: Can I debug and see where I am in an website?

am 20.12.2007 13:47:20 von mark

"JB" wrote in message
news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.google groups.com...

> There is a menu on the main page which, when clicked brings up a
> dialog box which needs filling out. I just can't find the code for
> this section.

Does the dialog box not have any text in it that you could use as your
search criterion in VS.NET...?


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Re: Can I debug and see where I am in an website?

am 20.12.2007 14:59:06 von jamesb457

I can step through all the way until the code stops - and the page has
completed loading.
but once it has loaded - and i need to interact with the site to get
to the page i want, stepping through stops and it just continues
through all the way. Unless i am missing a setting somewhere?

On 20 Dec, 12:42, "Kevin Spencer" wrote:
> You can step through the code in the Visual Studio debugger when you run the
> site in Visual Studio in Debug mode. It will load the pages and code files
> into the Editor when they are used. This is assuming that there are no DLLs
> in use (you didn't mention any), or that the DLLs are debuggable.
>
> --
> HTH,
>
> Kevin Spencer
> Chicken Salad Surgeon
> Microsoft MVP
>
> "JB" wrote in message
>
> news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.google groups.com...
>
> > I'm trying to fix a site that someone has left me and - to understate
> > it - it is huge!
> > I'm trying to work on a specific section but i can't seem to find
> > where the proper code for it is..
>
> > There is a menu on the main page which, when clicked brings up a
> > dialog box which needs filling out. I just can't find the code for
> > this section.
> > There are dozens of namespaces, hundreds of classes, and loads
> > of .aspx, .asax, .asmx files.
> > No comments or documentation available.
>
> > So since i've got remote debugging working, can I see where I am in
> > the site somehow? Which page/class/method has just been run?
>
> > Just to make things worse its Vis Studio 2003, .NET 1.1

Re: Can I debug and see where I am in an website?

am 20.12.2007 14:59:24 von jamesb457

On 20 Dec, 12:47, "Mark Rae [MVP]" wrote:
> "JB" wrote in message
>
> news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.google groups.com...
>
> > There is a menu on the main page which, when clicked brings up a
> > dialog box which needs filling out. I just can't find the code for
> > this section.
>
> Does the dialog box not have any text in it that you could use as your
> search criterion in VS.NET...?
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

Alas, no. I did a search and only found corresponding text in a .isql
document in a stored procedure.
Searching for the procedure name didnt bring up anything, which i
thought was odd...

Re: Can I debug and see where I am in an website?

am 20.12.2007 15:50:43 von mark

"JB" wrote in message
news:00f6369f-4e48-4cb2-9c52-8231cc52441a@l32g2000hse.google groups.com...

>> > There is a menu on the main page which, when clicked brings up a
>> > dialog box which needs filling out. I just can't find the code for
>> > this section.
>>
>> Does the dialog box not have any text in it that you could use as your
>> search criterion in VS.NET...?
>
> Alas, no. I did a search and only found corresponding text in a .isql
> document in a stored procedure.
> Searching for the procedure name didnt bring up anything, which i
> thought was odd...

Hmm - well, the page from which the dialog box is launched must display its
name in the browser address bar, so I guess that's your starting point...

I've been in your situation before many times, and don't envy you one bit!


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Re: Can I debug and see where I am in an website?

am 20.12.2007 20:45:02 von MohamadElarabi

You can turn tracing on either in the web config or on that aspx page you're
debugging also turn debug=true.

The problem with stepping through is that you get the top-bottom run process
but you may not go through all events that actually take place.

If you look at the aspx page, the code that's rendering is either on the
page itself, in a master page, or in a control that is used on the page. If
you suspect a certain custom control you can right click on its name and
select "Go to definition" and that might take you to the control's code where
you can put breaks there as well.

Good luck with this. I hate it when that happens.

--
Mohamad Elarabi
Lead Developer. MCTS, MCPD.


"JB" wrote:

> On 20 Dec, 12:47, "Mark Rae [MVP]" wrote:
> > "JB" wrote in message
> >
> > news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.google groups.com...
> >
> > > There is a menu on the main page which, when clicked brings up a
> > > dialog box which needs filling out. I just can't find the code for
> > > this section.
> >
> > Does the dialog box not have any text in it that you could use as your
> > search criterion in VS.NET...?
> >
> > --
> > Mark Rae
> > ASP.NET MVPhttp://www.markrae.net
>
> Alas, no. I did a search and only found corresponding text in a .isql
> document in a stored procedure.
> Searching for the procedure name didnt bring up anything, which i
> thought was odd...
>

Re: Can I debug and see where I am in an website?

am 21.12.2007 12:47:00 von Kevin Spencer

You can put break points in any page that is requested during the debugging
session, and the debugger will stop at those. Presumably, you should be able
to identify that pages that you will be requesting via their URLs.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"JB" wrote in message
news:7fb9c65e-f64e-46b7-9133-7da7ed7791bc@w40g2000hsb.google groups.com...
>I can step through all the way until the code stops - and the page has
> completed loading.
> but once it has loaded - and i need to interact with the site to get
> to the page i want, stepping through stops and it just continues
> through all the way. Unless i am missing a setting somewhere?
>
> On 20 Dec, 12:42, "Kevin Spencer" wrote:
>> You can step through the code in the Visual Studio debugger when you run
>> the
>> site in Visual Studio in Debug mode. It will load the pages and code
>> files
>> into the Editor when they are used. This is assuming that there are no
>> DLLs
>> in use (you didn't mention any), or that the DLLs are debuggable.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Chicken Salad Surgeon
>> Microsoft MVP
>>
>> "JB" wrote in message
>>
>> news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.google groups.com...
>>
>> > I'm trying to fix a site that someone has left me and - to understate
>> > it - it is huge!
>> > I'm trying to work on a specific section but i can't seem to find
>> > where the proper code for it is..
>>
>> > There is a menu on the main page which, when clicked brings up a
>> > dialog box which needs filling out. I just can't find the code for
>> > this section.
>> > There are dozens of namespaces, hundreds of classes, and loads
>> > of .aspx, .asax, .asmx files.
>> > No comments or documentation available.
>>
>> > So since i've got remote debugging working, can I see where I am in
>> > the site somehow? Which page/class/method has just been run?
>>
>> > Just to make things worse its Vis Studio 2003, .NET 1.1
>
>
>

Re: Can I debug and see where I am in an website?

am 21.12.2007 14:16:53 von jamesb457

Well that was my problem.
The page i want is linked off default.aspx, but its not a page as
such, its a dialog box - hance no URL.
And the link isn't really a link - i beleive its some sort of
Javascript menu - and a breakpoint in a js file doesnt seem to work.
I can put in breakpoints, but it is not at all obvious where the code
is handling the menu Click event - I can step through all the way
through the page initialization until i get to the point where it is
sitting waiting for user input, then it seems to turn stepping through
off itself.

On 21 Dec, 11:47, "Kevin Spencer" wrote:
> You can put break points in any page that is requested during the debugging
> session, and the debugger will stop at those. Presumably, you should be able
> to identify that pages that you will be requesting via their URLs.
>
> --
> HTH,
>
> Kevin Spencer
> Chicken Salad Surgeon
> Microsoft MVP
>
> "JB" wrote in message
>
> news:7fb9c65e-f64e-46b7-9133-7da7ed7791bc@w40g2000hsb.google groups.com...
>
> >I can step through all the way until the code stops - and the page has
> > completed loading.
> > but once it has loaded - and i need to interact with the site to get
> > to the page i want, stepping through stops and it just continues
> > through all the way. Unless i am missing a setting somewhere?
>
> > On 20 Dec, 12:42, "Kevin Spencer" wrote:
> >> You can step through the code in the Visual Studio debugger when you run
> >> the
> >> site in Visual Studio in Debug mode. It will load the pages and code
> >> files
> >> into the Editor when they are used. This is assuming that there are no
> >> DLLs
> >> in use (you didn't mention any), or that the DLLs are debuggable.
>
> >> --
> >> HTH,
>
> >> Kevin Spencer
> >> Chicken Salad Surgeon
> >> Microsoft MVP
>
> >> "JB" wrote in message
>
> >>news:bf746fd3-46ec-43f6-900c-6e18ef07c901@r29g2000hsg.goog legroups.com...
>
> >> > I'm trying to fix a site that someone has left me and - to understate
> >> > it - it is huge!
> >> > I'm trying to work on a specific section but i can't seem to find
> >> > where the proper code for it is..
>
> >> > There is a menu on the main page which, when clicked brings up a
> >> > dialog box which needs filling out. I just can't find the code for
> >> > this section.
> >> > There are dozens of namespaces, hundreds of classes, and loads
> >> > of .aspx, .asax, .asmx files.
> >> > No comments or documentation available.
>
> >> > So since i've got remote debugging working, can I see where I am in
> >> > the site somehow? Which page/class/method has just been run?
>
> >> > Just to make things worse its Vis Studio 2003, .NET 1.1

Re: Can I debug and see where I am in an website?

am 21.12.2007 14:51:45 von mark

"JB" wrote in message
news:8e2fa1bb-38b9-4b3c-98f8-d07afe36fc8c@1g2000hsl.googlegr oups.com...

> a breakpoint in a js file doesnt seem to work.

In that case, use the debugger; command e.g.



http://www.google.co.uk/search?sourceid=navclient&aq=t&hl=en -GB&ie=UTF-8&rlz=1T4GZEZ_en-GBGB252GB252&q=JavaScript+debugg er


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Re: Can I debug and see where I am in an website?

am 21.12.2007 16:04:12 von jamesb457

Ah Cheers thats an excellent idea.
I will take a look at this in the week to come.

On 21 Dec, 13:51, "Mark Rae [MVP]" wrote:
> "JB" wrote in message
>
> news:8e2fa1bb-38b9-4b3c-98f8-d07afe36fc8c@1g2000hsl.googlegr oups.com...
>
> > a breakpoint in a js file doesnt seem to work.
>
> In that case, use the debugger; command e.g.
>
>
>
> http://www.google.co.uk/search?sourceid=navclient&aq=t&hl=en -GB&ie=UT...
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net